dos - How Can I make A Shorter Delay in CMD (XP) -


im using ping create delay in batch file, there seems quite big limit on how short can make ping delay.

ping -n 1 -w 1 1.1.1.1 wait maybe 500ms  ping 127.0.0.1 wait maybe 100ms 

so there way smaller delay?

this on xp, "timeout" isnt enabled

you can in xp windows scripting, creating vbscript file millisleep.vbs looks (with decent error checking built in):

if wscript.arguments.count <> 1     wscript.echo "millisleep.vbs: not enough arguments"     wscript.quit 1 end if  delay = wscript.arguments(0) if not isnumeric(delay)     wscript.echo "millisleep.vbs: " & delay & " not numeric"     wscript.quit 1 end if  wscript.sleep delay 

then, own script, can use quarter-second delay:

cscript //nologo millisleep.vbs 250 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -