I use a cURL command stored in .bat file.
I want to have variables implemented in the command, that will receive the value when I call the command to execute the .bat file.
Can anybody help with understading the syntax of:
- Passing variables to batch file
- Defining certain parts of the cURL command as variables (The parts in bold below)
Here is my cURL command (Parts in bold should be variables):
curl -k --user "usercode:" -d source="https://secure.4log.com/**431032**" https://api.pdfshift.io/v2/convert/ -d sandbox=true --output C:\Users\administrator\Desktop\**testpdf11**.pdf
somebatchfile.bat param1 param2etc?BatchScript.cmd "431032" "testpdf11"where the script would receive431032as%~1andtestpdf11as%~2!curl -k --user "usercode:" -d source="https://secure.4log.com/%~1" https://api.pdfshift.io/v2/convert/ -d sandbox=true --output C:\Users\administrator\Desktop\%~2.pdf