Delay a Batch command

the_tazinator

Are we there yet?
Joined
May 19, 2002
Messages
177
#1
I am trying to write a batch file that will start a service 1 minute after a computer boots up. I have it set as a scheduled task to run at startup but I need to put a delay in it so that everything else has started before this process starts. Any ideas on how to create a simple 60 second delay?
 

the_tazinator

Are we there yet?
Joined
May 19, 2002
Messages
177
#3
I found a round-about way of creating the delay, but for anyone who wants to know how I did it; I pinged and invalid IP address once with a timeout of 60 seconds, works perfect!

ping 1.1.1.1 -n 1 -w 60000

This way the time delay can be easily be changed.
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,035
Messages
673,561
Members
89,038
Latest member
molliewhite