1.

Solve : show text in batch file every 2 seconds?

Answer»

hi, i would like to create a batch file that SHOWS a text every 2 seconds example

test
two seconds wait...
test
two seconds wait

and it don't stop showing the text, it keep showing the text until you close dos.

my os is windows xp professionalWrite the text in a For loop.
Do you have the sleep COMMAND in XP? It should do it.

uliI'm trying to do something like this. How would I use a FOR loop?

Thanxthe command sleep doesn't work with meWindows XP did not COME with a SLEEP command. You can find a copy on the net or you can download the Win2003 Resource Kit. After that it's easy:

Code: [Select]
:loop
echo yourmessagegoeshere
sleep 2
goto loop


A better solution would be a Windows Script where you COULD ISSUE your message repeatedly until shutdown is detected.




Discussion

No Comment Found