Putting a timer on a batch file?

Hewlett-packard / Presario v5000 (rg324ua#a...
March 7, 2010 at 14:09:09
Specs: Microsoft Windows XP Professional, 1.989 GHz / 1406 MB
Hello. I want to set up a batch file to open up a program in 30 seconds. I think I did it before, but I dont remember the code I used. Thanks for any input.


See More: Putting a timer on a batch file?

Report •

March 7, 2010 at 16:50:52
One way is to ping an unreachable ip address. For example, my home network uses a 192.168.xxx.xxx subnet. So I can use an address like with the following:

ping -n 1 -w 30000 >nul

This will cause a single ping to with a timeout of 30 seconds (30000 miliseconds).

The key to this working properly is to make sure you ping an address that is unreachable from your network.

-- kptech

Report •

March 7, 2010 at 17:57:02
Download the old MS-DOS 6.22 CHOICE.COM file from here:
Unless you want to make the disks just rename the downloaded sup622.exe to sup622.zip and extract the choice.com file. Either put it in with the program
or in "c:\windows\system32".

Batch file line for a time delay (range 5 to 99 seconds, 30 secs shown)


[Note: The Pipe | on my (UK) keyboard is Shift + Backslash]

some other bloke...

Report •
Related Solutions

Ask Question