James Manning's Blog

April 5, 2005

stupid cmd.exe trick – sleep N via ping -n N+1

Filed under: Uncategorized — manningj @ 4:19 pm

sure to be better ways to do this, but

doskey loop=for /l %%l in (1,1,1000000) do (cls $T $* $T ping -n 2 127.0.0.1 ^> nul)

so I can do “loop dir foo.txt” or whatever to check on the progress of a file.

SFU and bash are out there, just nice to have options in cmd.exe sometimes.


1 Comment »

  1. Killer suggestion James, thanks!

    Comment by Kevin Andrew Lipscomb — October 12, 2009 @ 2:19 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.