Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 733
  • Last Modified:

create a batch file

want this to appear in batch file

C:\Path_to_curl\curl.exe http://www.url.com/
0
rgb192
Asked:
rgb192
  • 2
  • 2
  • 2
2 Solutions
 
biztigerCommented:
What is your problem exactly.

Create a batch file(.bat) and put the following line:-
C:\Path_to_curl\curl.exe http://www.url.com/
0
 
VanHackmanCommented:

1 - Open Notepad
2 - Copy the code that I Attached to this message
3 - Paste the code in Notepad
4 - Go to File> Save As..
5 - Save the File as "ExecCURL.bat"
     (you can change the "ExecCURL" name, but keep the ".bat" extension)
6 - Now you have the .bat!!


@echo off

echo --------------------------------------------------
echo                  Executing CURL 
echo --------------------------------------------------

C:\Path_to_curl\curl.exe http://www.url.com/


echo CURL Has BEEN EXECUTED SUCCESSFULL
exit

Open in new window

0
 
rgb192Author Commented:
i have curl enabled on a windows server 2008 but cant find curl.exe

curl is working with php
0
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

 
biztigerCommented:
In php curl is an extension(.dll), not .exe.

Download curl from
http://www.gknw.net/mirror/curl/win32/curl-7.19.7-ssl-sspi-zlib-static-bin-w32.zip

Now extract it on any convenient path, e.g. C:\curl

Now you will find curl.exe on he extracted folder.

0
 
VanHackmanCommented:
When you install curl, just change the Path in the code
in this line:

C:\Path_to_curl\curl.exe http://www.url.com/

For the right path, and the .bat will work.

Bye!
0
 
rgb192Author Commented:
used curl in .bat file
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now