Right now: Live recording of the Tech Support Guy Show!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express php pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
waiting in a batch file


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
dallasfreak's Avatar
Member with 65 posts.
 
Join Date: Jul 2000
08-Jan-2001, 02:04 PM #1
i'm trying to find a dos command that will cause the program to wait for 10 seconds in between two commands. I don't want it to ask for any type of input, just wait. any suggestions?
LarryCore's Avatar
Distinguished Member with 5,244 posts.
 
Join Date: Aug 1999
Location: Rockford, IL
Experience: Advanced
08-Jan-2001, 09:16 PM #2
No such animal.

There used to be lots of third party utilities out there, that let you add new commands to batch files.

But built into DOS? Nope.

------------------
Get free stuff and help out a poor computer tech:
LarryCore begs for money
The DOS Machine's Avatar
Senior Member with 144 posts.
 
Join Date: Jul 2000
Experience: Seasoned
18-Jan-2001, 05:11 PM #3
(I am not sure, but... )
In your DOS folder you should find the pause program. You can just add the word "PAUSE" on a line and the batch process will halt until you 'press a key'. I also believe that you can tell that program how long to wait. Type "PAUSE /?" on the command line and you should find the switches for that operation. Also, you should browse the files in the DOS folder. One of the programs might be what you are looking for. I hope this helps.
LarryCore's Avatar
Distinguished Member with 5,244 posts.
 
Join Date: Aug 1999
Location: Rockford, IL
Experience: Advanced
19-Jan-2001, 07:04 PM #4
Pause waits for a key to be pressed - it is not time delayed or anything like that, unfortunately.

------------------
Get free stuff and help out a poor computer tech:
LarryCore begs for money
mole's Avatar
Senior Member with 795 posts.
 
Join Date: Aug 1999
Location: Indian Head, MD "The land of large boxes."
23-Jan-2001, 05:56 AM #5
Dallasfreak,

The DOS command "choice" is what you want. Use the command with the following switches:

choice /T:Y,10 /N

That will give you your 10 second count. The /N switch does not display the options prompt at the end of the string that you would ordinarily get. You can type "choice /?" to get the complete help file for choice.

Choice is not included with Win2K, but can be called from a network directory or copied to a directory in the path of any Win2K PC from a DOS 6.22 and up (Win9x) machine and it will work fine.

Hope that helps.

mole
LarryCore's Avatar
Distinguished Member with 5,244 posts.
 
Join Date: Aug 1999
Location: Rockford, IL
Experience: Advanced
23-Jan-2001, 06:36 PM #6
Well, you learn something new every day!

When was that added in? 6.22? I don't remember ever seeing it.

------------------
Get free stuff and help out a poor computer tech:
LarryCore begs for money
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:07 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.