1.

Solve : CMD Help.?

Answer»

Is there possible to SET som kind of delay in my bat file something like this:
@echo off
pause
[som kind of delay command :-? :-?]
echo weeeiiii
pause
exit

i know there is a command named sleep that works on some computers but not my computer
Depending on your OS (you still haven't shared that info with us....must be a STATE secret) you can use either choice (Win9x MACHINES) or sleep (WinNT machines).

Choice is installed with Win9x machines and some versions of MS-DOS. Sleep can be found in the Win2003 Resource Kit. You MIGHT also find in on the net as a standalone program. (use Google for best results)

8-)Quote

I am using a windows xp professional ^^
You can download the Win2003 Resource Kit or you can search the web for the standalone sleep executable.

I think even CH offers a sleep program.

Good luck. 8-)This should do it...

Code: [Select]PING 1.1.1.1 -n 1 -w 200 >NUL.
the 200 stands for 2 seconds. Change it to 100 for one sec, 150 for one and a half..

Miki

(i asked the same question 1 or 2 years ago ! )Quote
This should do it...

Code: [Select]PING 1.1.1.1 -n 1 -w 200 >NUL.
the 200 stands for 2 seconds. Change it to 100 for one sec, 150 for one and a half..

correction:

Code: [Select]PING 1.1.1.1 -n 1 -w 2000 >NUL.
the 2000 stands for 2 seconds. Change it to 1000 for one sec, 1500 for one and a half..

its MILLISECONDS thus is base 1000 not base 100


Discussion

No Comment Found