Thread: Testing....
View Single Post
Old 2010-02-19, 14:02   #6
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

AF116 Posts
Default CHOICE - waiting in script for n seconds

Because CHOICE behave different on my XP and Vista box, i will try another tool.

Possibilities:

1. With PING:
ping 127.0.0.1 -n 60 -w 1000>NUL

waits for 60 seconds.

2. Windows Server 2003 Resource Kit Tools:
sleep.exe

3. Win98 Resource Kit:
sleep.exe

4. UnixTools:
sleep.exe

I think, no.3 is the best choice instead of CHOICE!

Quote:
Originally Posted by mdettweiler
Confirmed, number 3 works on my Windows XP setup as well. If it was designed for Win98, and works on XP and Vista as well, then it should work on pretty much anything.
With Win Vista it's ok, too, so this tool is used in the Win-Version of the script.
I've renamed it to 'waits.exe' (wait seconds), because there're other tools around named 'sleep' which put the PC in sleepmode! But this is not what we want!

Last fiddled with by kar_bon on 2010-02-19 at 16:27
kar_bon is offline   Reply With Quote