Click to See Complete Forum and Search --> : not really sure if this should be in programing...
guerrillase7en
March 18th, 2002, 04:51 PM
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.?
ihsir
March 18th, 2002, 05:30 PM
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
VictorKaum
March 18th, 2002, 05:36 PM
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
ihsir
March 18th, 2002, 05:42 PM
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.
Custy_J
March 18th, 2002, 05:59 PM
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...
guerrillase7en
March 18th, 2002, 09:15 PM
Originally posted here (http://www.AntiOnline.com/showthread.php?threadid=222290#post477239) 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.
thanks that's what it was ;)