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 connection 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 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 >
Solved: Does any1 know the if theres a DOS command for Wait or Timed Pause?


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
Duckman69's Avatar
Computer Specs
Senior Member with 641 posts.
 
Join Date: Jun 2007
04-Jul-2007, 11:16 PM #1
Solved: Does any1 know the if theres a DOS command for Wait or Timed Pause?
im trying to script a kiddy script for fun but i want to have a wait / pause for 3 seconds instead of just pause where they have to press a key to continue, any help would be super cool thanks ( i looked on a 1 or 2 sites with a bunch of commands but i couldnt find what i was looking for though i probally over looked it )
Frank4d's Avatar
Distinguished Member with 4,167 posts.
 
Join Date: Sep 2006
Location: So. Calif.
Experience: Since MS-Dos 3.0
05-Jul-2007, 09:38 AM #2
This will insert a delay in a batch file:
PING 1.1.1.1 -n 1 -w 3000 >NUL

3000 is milliseconds, so the example above creates a 3 second delay.
astralcomp's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Jul 2007
Experience: Einstein
05-Jul-2007, 11:12 AM #3
Launch using start command too
The ping 127.0.0.1 is a great way to make the script wait.

You can also use

start /wait "program", this will call the program and wait until the program finishes to continue.
Don't forget about start /min, start /low, etc... great commands.

If your getting into scripting, you will use this a lot.

good luck
Duckman69's Avatar
Computer Specs
Senior Member with 641 posts.
 
Join Date: Jun 2007
05-Jul-2007, 03:14 PM #4
Thanks Guy
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 04:24 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.