This prob. shouldn't be in programing, but i didn't know where else to put it...
what's the option in CHOICE to make the batch file stall for X # of sec.?
Printable View
This prob. shouldn't be in programing, but i didn't know where else to put it...
what's the option in CHOICE to make the batch file stall for X # of sec.?
theres the PAUSE command but it'll wait for user keypress...
otherwise why dont you code a program that will do the 'wait'. and put that in the autoexec.
hope this helps
Here's a ASM code to make a prog that does the same as pause except it don't give the msg "Stike a key when ready"
a 100
mov ah,8
int 21
cmp al,0
jnz 10a
int 21
mov ah,4c
int 21
r cx
:e
n wait.com
w
q
well heres' more on the pause with choice thing
CHOICE Choose option /C:ABC /T:A,10
Displays the text "Choose option [A,B,C]" and if within 10 secs no key is pressed it auto'ly. choses A.
The Win2k Resource kit has an .exe called WaitFor. The syntax would be:
WaitFor.exe -t (Timeout)
where (Timeout) is the number of seconds to wait.
THis could be used in a batch file, logon script, etc...
thanks that's what it was ;)Quote:
Originally posted here by ihsir
well heres' more on the pause with choice thing
CHOICE Choose option /C:ABC /T:A,10
Displays the text "Choose option [A,B,C]" and if within 10 secs no key is pressed it auto'ly. choses A.