Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-16-2008, 09:40 AM
yepiknowiam
Newsgroup Contributor
 
Posts: n/a
wait/sleep command

Is there a wait/sleep equilivant command for the command prompt? I know
there is wscript.sleep for vbs files.

I'm running a batch file and want to it pause a few seconds between commands.

Haven't found much from microsoft. There is the waitfor command but it
wasn't recognized.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-16-2008, 09:40 AM
  #2 (permalink)  
Old 05-16-2008, 09:50 AM
Bob I
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

Use

ping -n XXX 127.0.0.1

replace XXX with the desired number of seconds +1


yepiknowiam wrote:

> Is there a wait/sleep equilivant command for the command prompt? I know
> there is wscript.sleep for vbs files.
>
> I'm running a batch file and want to it pause a few seconds between commands.
>
> Haven't found much from microsoft. There is the waitfor command but it
> wasn't recognized.
>
> Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-16-2008, 10:20 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

Poor man's sleep timer:
ping localhost -n (number of seconds to sleep)
Louis

"yepiknowiam" <yepiknowiam@discussions.microsoft.com> wrote in message
news:37466D6D-894F-4104-B902-9986487E4FE2@microsoft.com...
> Is there a wait/sleep equilivant command for the command prompt? I know
> there is wscript.sleep for vbs files.
>
> I'm running a batch file and want to it pause a few seconds between

commands.
>
> Haven't found much from microsoft. There is the waitfor command but it
> wasn't recognized.
>
> Thanks.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-16-2008, 10:20 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

Oops, that sould have been
ping -n (number of seconds to sleep) localhost
Louis

"yepiknowiam" <yepiknowiam@discussions.microsoft.com> wrote in message
news:37466D6D-894F-4104-B902-9986487E4FE2@microsoft.com...
> Is there a wait/sleep equilivant command for the command prompt? I know
> there is wscript.sleep for vbs files.
>
> I'm running a batch file and want to it pause a few seconds between

commands.
>
> Haven't found much from microsoft. There is the waitfor command but it
> wasn't recognized.
>
> Thanks.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 05-16-2008, 10:30 AM
Pegasus \(MVP\)
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command


"3c273" <nospam@nospam.com> wrote in message
news:g0kfdt0mli@enews4.newsguy.com...
> Oops, that sould have been
> ping -n (number of seconds to sleep) localhost
> Louis


The order of the parameters is irrelevant.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 05-16-2008, 11:10 AM
yepiknowiam
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

Thanks. That did the trick. I'll have to remember that command.

"Pegasus (MVP)" wrote:

>
> "3c273" <nospam@nospam.com> wrote in message
> news:g0kfdt0mli@enews4.newsguy.com...
> > Oops, that sould have been
> > ping -n (number of seconds to sleep) localhost
> > Louis

>
> The order of the parameters is irrelevant.
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 05-16-2008, 11:10 AM
3c273
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

Somehow I thought I left out localhost on the first one. Still asleep I
guess.

Louis

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:OuCTqo3tIHA.4476@TK2MSFTNGP06.phx.gbl...
>
> "3c273" <nospam@nospam.com> wrote in message
> news:g0kfdt0mli@enews4.newsguy.com...
> > Oops, that sould have been
> > ping -n (number of seconds to sleep) localhost
> > Louis

>
> The order of the parameters is irrelevant.
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 05-16-2008, 11:11 AM
Big Al
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

yepiknowiam wrote:
> Is there a wait/sleep equilivant command for the command prompt? I know
> there is wscript.sleep for vbs files.
>
> I'm running a batch file and want to it pause a few seconds between commands.
>
> Haven't found much from microsoft. There is the waitfor command but it
> wasn't recognized.
>
> Thanks.


There is a microsoft resource kit that includes a sleep command you can use.
http://www.microsoft.com/downloadS/d...displaylang=en
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 06-13-2008, 08:46 AM
Registered User
 
Join Date: Jun 2008
Posts: 2
Mcribisback is on a distinguished road
Re: wait/sleep command

I tried the ping -n (local) host to use as a Sleep/wait command, but it runs forever instead of the number of seconds i assign it. I must be doing something wrong?

thanks for the help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 06-13-2008, 09:20 AM
Bob I
Newsgroup Contributor
 
Posts: n/a
Re: wait/sleep command

ping -n xxx 127.0.0.1

(replace xxx with the seconds plus one so for one minute use 61)

Mcribisback wrote:

> I tried the ping -n (local) host to use as a Sleep/wait command, but it
> runs forever instead of the number of seconds i assign it. I must be
> doing something wrong?
>
> thanks for the help!
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 06-13-2008, 10:11 AM
Registered User
 
Join Date: Jun 2008
Posts: 2
Mcribisback is on a distinguished road
Re: wait/sleep command

I did actually try that initially, it still keeps looping for some reason.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sleep mode command Sam Steinhauser Windows Vista 3 01-25-2008 03:50 PM
start /wait does not wait :( Yandos Windows XP 3 05-23-2007 01:00 AM
sleep key command for MS wireless 6000 keyboard Ed Vista Hardware 4 05-15-2007 10:00 PM
sleep key command for MS wireless keyboard Ed Windows Vista 0 05-14-2007 06:20 AM
RE: Sleep Command Justin Windows XP Tablet PC Newsgroup 2 12-03-2006 11:36 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 05:59 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0