sleep command in batch script

I have a batch script that automatically starts/stops my sprint business connection software on my computer and i want to put a "sleep" command in it to give it some time (30 seconds) in between terminating the program and restarting it, but i dont know the specific code to use.  And i dont want to have to hit a key after the sleep part to start the service back up, i just want it to do it by itself.   Thanks
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pete LongTechnical ConsultantCommented:
Hi dlev15,
Sleep uses the following syntax:

sleep (Time)

Specifies the number of seconds to pause.

dlev15Author Commented:
every time i do that it says 'sleep' is not recognized as either an internal or external command am i doing something wrong?
sleep isn't a command on Windows XP or 2000 clients. You will have to use another trick.
What I do is use a ping...

rem Pause for five minutes
ping -n 300>nul

Adjust the value "300" to be the number of seconds that you want to pause for.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.