Non-random thoughts.

2009-10-21

Pausing in a batch script

While debugging my hybrid dos/python invokation via psexec, I needed a way to pause the windows batch script for while (I tried to figure out the path of the file once psexec had copied it to the remote computer). I found this way of doing it, which seems to work on both Windows Server 2003 and Windows Server 2008.

@ping -n 30 -w 1000 0.0.0.1 > NUL

No comments: