/ Published in: DOS Batch
                    
                                        
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.
Usage:
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)
millisleep.bat 250
                Usage:
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)
millisleep.bat 250
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        
                                    Comments
 Subscribe to comments
                    Subscribe to comments
                
                