In DOS/cmd batch scripts it is not possible to issue a SLEEP command for less than 1 second. This script allows you to use a single batch script to double as a jscript (double-execution) in order to accomplish a single script/command that can specify sleep in milliseconds.
Save script as a filename (not sleep.bat) such as millisleep.bat and put it in your path.
From within another batch script invoke it and pass in the number of milliseconds to sleep: (example below will sleep 250 milliseconds, which is 1/4th of a second)
You need to login to post a comment.