command prompt help - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 04-12-2008, 05:51 AM   #1 (permalink)
True Techie
 
Join Date: Apr 2006
Posts: 139
Default command prompt help

does anyone know how to stall a batch file from running? like if i wanted a 10 minute delay from when i double click the file.bat to it actually showing the command prompt.

and also, is there a way to delay a command in cmd? an example is if i had the following commands:

echo IT IS LUNCH TIME
echo IT IS 30 SECONDS PAST LUNCH TIME


how do i delay the second echo command by 30 seconds?
__________________

heffer is offline  
Old 04-12-2008, 01:20 PM   #2 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default Re: command prompt help

I don't know of any way built into dos.

I would look into using vbs if you want to do pauses.
__________________

__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 04-12-2008, 02:52 PM   #3 (permalink)
HONK if you route packets
 
mikesgroovin's Avatar
 
Join Date: Sep 2003
Location: MD
Posts: 4,715
Default Re: command prompt help

All you want is 30 seconds? Try pinging yourself 30 times in between the two commands. writing a quick VBS or Perl to incorporate a sleep would be how I would do it. But, for something extremely simple, try the 30 pings.

add a
ping 127.0.0.1 -n 30
in between the 2 echoes.
mikesgroovin is offline  
Closed Thread

Thread Tools
Display Modes

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 On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 03:12 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.