View previous topic :: View next topic |
Author |
Message |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Fri Oct 23, 2009 1:39 pm Post subject: Timed batch. |
|
|
I have a single line batch file that does what I want perfectly, but I want it to wait 2 hours before doing it.
How do I go about setting a timer to wait 2 hours before running the next line?
|
|
Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
|
Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Fri Oct 23, 2009 6:00 pm Post subject: |
|
|
Sleep/wait isn't supported by default. For 2k+ I'd suggest Code: | ping -n 1000 -w 100 127.0.0.1 | or something.. See
|
|
Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Fri Oct 23, 2009 6:24 pm Post subject: |
|
|
Kay, thanks guys.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Oct 23, 2009 7:09 pm Post subject: |
|
|
just use the window scheduler
|
|
Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Fri Oct 23, 2009 7:25 pm Post subject: |
|
|
slovach wrote: | just use the window scheduler |
I am, I wanted a batch to run two hours after startup, so I run the .bat at startup and have it sleep for 2 hours.
|
|
Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Oct 23, 2009 10:52 pm Post subject: |
|
|
Cryoma wrote: | slovach wrote: | just use the window scheduler |
I am, I wanted a batch to run two hours after startup, so I run the .bat at startup and have it sleep for 2 hours. |
look harder, you can do that with the scheduler.
set the trigger type to on startup, then set its delay to whatever.
|
|
Back to top |
|
 |
|