Time based Batch

T-Jazz - Dec 22, 2008 at 09:34 PM
 littlefox - Apr 18, 2010 at 02:30 AM
Hi every one!!!!!!!!!

I have batch file. i want that certain line of batch file execute after every one second, not all the program only certain line. In VB we can do it by timmer setting as u know but how to do this in batch file.

Regards T-Jazz

Waiting for you help!

3 responses

@echo off
<your first command>
ping -n 2 -w 1000>nul 2>nul
<your second command>
ping -n 2 -w 1000>nul 2>nul
<your third command>
@echo off
command 1
PING -n 1 -w 1000>nul
command 2
PING -n 1 -w 1000>nul
command 3
PING -n 1 -w 1000>nul

(Just repeat the same ping process after every command)
Just right this in a new line.

ping Localhouse -n 1 >nul

this will wait 1 second before going to the next line.

Nathan Ross