What does /p mean in set /p?

For future reference, you can get help for any command by using the /? switch, which should explain what switches do what. According to the set /? screen, the format for set /p is SET /P variable=[promptString] which would indicate that the p in /p is “prompt.” It just prints in your example because <nul passes in a nul character which immediately ends the prompt so it … Read more

How to sleep for five seconds in a batch file/cmd

One hack is to (mis)use the ping command: Explanation: ping is a system utility that sends ping requests. ping is available on all versions of Windows. 127.0.0.1 is the IP address of localhost. This IP address is guaranteed to always resolve, be reachable, and immediately respond to pings. -n 6 specifies that there are to be 6 pings. There is a … Read more

Batch file to copy files from one folder to another folder

xcopy.exe is definitely your friend here. It’s built into Windows, so its cost is nothing. Just xcopy /s c:\source d:\target You’d probably want to tweak a few things; some of the options we also add include these: /s/e – recursive copy, including copying empty directories. /v – add this to verify the copy against the original. slower, but for … Read more

Curl not recognized as an internal or external command, operable program or batch file

Steps to install curl in windows Install cURL on Windows There are 4 steps to follow to get cURL installed on Windows. Step 1 and Step 2 is to install SSL library. Step 3 is to install cURL. Step 4 is to install a recent certificate Step One: Install Visual C++ 2008 Redistributables From https://www.microsoft.com/en-za/download/details.aspx?id=29 … Read more