PDA

View Full Version : Batch Programming


jamesbond007
01-07-2007, 06:41 PM
I want to know if there is a command in Dos that will delay the

execution of a set of commands in a batch file ?
Suppose I have a batch file with 2 commands as follows :

dir >> list.txt
netstat -n

Now I'd like to add a command in between dir and netstat, like

delay(X), which would delay the execution of netstat by X seconds.
I mean after dir the batch file should wait for the time I mention and

then execute the next command. So does Dos have a command like delay ??

Sykora
01-07-2007, 07:25 PM
http://malektips.com/xp_dos_0002.html

I'm not too familiar with DOS but you should be able to use that in your batch files.

jamesbond007
02-07-2007, 11:09 AM
Thanx man that really helped