|
Answer» hi,
I"m having trouble with the delay command
Code: [Select]TYPE NUL | CHOICE.COM /N /CY /TY,5 >NUL when I try to use it, dos opens and immidiately close again. I'm having win XP sp2. anyone knows how this comes and how to solve the problem.
thanks in advantage.XP is not normally bundled with CHOICE Command, you will need to copy it from an older MS OS to the root directory that the Batch is launched from, or install a Resource Kit to obtain Choice command.
Daveresource kit? how do you mean? do you have a site where I can DOWNLOAD it. and is there another way without updating/installing something but still use a delay in DOS?I tried the following commands ALSO but the didn't worked either.
timeout [SECOND] sleep [seconds] wait
any other SUGGESTION?
thanks in advantageafter many hours searching, i looks like you can fix this problem in XP with the ping command
Code: [Select]PING -n X 127.0.0.1>nul where X stands for the seconds e.g. PING -n 6 127.0.0.1>nul for waiting 6seconds.
thanks anyway.It is actually Code: [Select]ping -n X localhost >nulwhere X = (seconds + 1) of time to wait ... because the first ping happens instantly. The most common hosts to ping are localhost or 127.0.0.1 (as STATED). I prefer "localhost" because it is quicker for me to type, but both should yield the same result.
|