Pausing

  • Thread starter Thread starter Fyodor Koryazhkin
  • Start date Start date
F

Fyodor Koryazhkin

Hi,
Yet another question.
Is there any possibility to pause an execution of batch file for cirtain
amount of time (let say 10 seconds)?

Thank you
Fyodor.
 
In microsoft.public.win2000.cmdprompt.admin Fyodor Koryazhkin
wrote:
Hi,
Yet another question.
Is there any possibility to pause an execution of batch file for
cirtain amount of time (let say 10 seconds)?

Thank you
Fyodor.

ping.exe -n 11 127.0.0.1 >nul

is one method.
Certain "sleep" or "wait" utilities can also be used.
In some cases START "" /WAIT <command> may be appropriate. (NT5.x)
 
Hi,
Yet another question.
Is there any possibility to pause an execution of batch file for cirtain
amount of time (let say 10 seconds)?

Typically, use PING with the -n switch set to number of seconds
to delay plus one, thus:

ping -n 11 127.0.0.1 >NUL

However, if you want to WAIT for the completion of a
separate process, you may prefer to use START /WAIT

For full details of how to insert delays and event waits in Batch
files, including an explanation of the PING method above,
see http://www.allenware.com/icsw/icswref.htm#Delays
 
Fyodor said:
Is there any possibility to pause an execution of batch file for
cirtain amount of time (let say 10 seconds)?

19} How can one build a delay / sleep / wait procedure for a script?
143047 Oct 30 2005 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

All the best, Timo
 

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

Similar Threads

Errorlevel of net stop 2
Pausing batch file execution 8
Command Prompt Question 4
Pipes in for loop 1
Timestamp as Name of File 0
paus batch file 6
Understanding Timer Pause code 4
Understanding Timer Pause Code 6

Back
Top