Computing.Net > Forums > Windows NT > using a WAIT command in a batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

using a WAIT command in a batch file

Reply to Message Icon

Name: Andy P
Date: December 10, 2001 at 19:56:57 Pacific
Comment:

Hi folks,

Hoping someone out there can help me. Im trying to run a series of batch files, one after the other.
At first I was hoping to be able to kick one off after the other by somehow when done, the previous batch file passes some kind of "im finished" indicator to the next line of the batch file.
So firstly..does..can anyone do this using MS DOS (and Win NT 4.0) in a batch file?? if not, then the other option i was looking at was a WAIT command, so wait X seconds before doing the next step. Again seems like Im asking for alot as good ol DOS doesnt have the command to do this!!

So please please please does anyone have the guru status to help me out???

Post here or send me a mail. Thanks..

Andy



Sponsored Link
Ads by Google

Response Number 1
Name: RR
Date: December 11, 2001 at 15:50:04 Pacific
Reply:

http://www.filelibrary.com/Contents/DOS/54/98.html

This page has a new command that can be added to your OS that is called wait...

DOS was invented when everything was slow!


0

Response Number 2
Name: donald
Date: December 13, 2001 at 02:33:07 Pacific
Reply:

try "choice.com"
another dos command

Example
TYPE NUL | CHOICE.COM /N /CY /TY,9 >NUL


0

Response Number 3
Name: Paul
Date: December 13, 2001 at 15:08:33 Pacific
Reply:

Could you use the 'Call' command? This will run whatever .bat you want next.


0

Response Number 4
Name: David Reynolds Jr.
Date: March 17, 2002 at 14:19:52 Pacific
Reply:

The WAITFOR file works great. You set the lag by seconds and then you can use the /nk switch for no keystrokes.

ex WAITFOR 2 /nk is what I used so a client could use an old DOS program that accessed a DB using Btrieve 5.10 on a machine running WinXP. Old Paint program from Spies Hecker.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: using a WAIT command in a batch file

Close a batch file in NT www.computing.net/answers/windows-nt/close-a-batch-file-in-nt/7923.html

RE: using a batch file with pullmail www.computing.net/answers/windows-nt/re-using-a-batch-file-with-pullmail/7351.html

How to run a Batch file in a Batch file www.computing.net/answers/windows-nt/how-to-run-a-batch-file-in-a-batch-file/12244.html