Windows XP command line

G

Guest

I can't seem to find a category for this question so please feel free to
sort it to its proper place.

I'm looking for a command to use in Windows XP SP2 in a batch file that will
pause the script for a defined period of time then continue the script on the
next line. I have seen a few commands like wait but they don't seem to have
native support in windows xp.

Is there a native command that will do this and if not is there a third
party add in like pstools that can be deployed?
 
D

Detlev Dreyer

JarrodDeMotts said:
I'm looking for a command to use in Windows XP SP2 in a batch file that will
pause the script for a defined period of time then continue the script on the
next line. I have seen a few commands like wait but they don't seem to have
native support in windows xp.

Is there a native command that will do this and if not is there a third
party add in like pstools that can be deployed?

"Batch file SLEEP Command"
http://malektips.com/xp_dos_0002.html

"Windows Server 2003 Resource Kit Tools"
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
 
P

Pegasus \(MVP\)

JarrodDeMotts said:
I can't seem to find a category for this question so please feel free to
sort it to its proper place.

I'm looking for a command to use in Windows XP SP2 in a batch file that
will
pause the script for a defined period of time then continue the script on
the
next line. I have seen a few commands like wait but they don't seem to
have
native support in windows xp.

Is there a native command that will do this and if not is there a third
party add in like pstools that can be deployed?

The most often used native tool is this:

ping localhost -n 59 > nul

This will pause the batch file for about 60 seconds.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top