Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Timed batch.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Oct 23, 2009 1:39 pm    Post subject: Timed batch. Reply with quote

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
View user's profile Send private message
Jesper
Grandmaster Cheater Supreme
Reputation: 9

Joined: 21 Feb 2007
Posts: 1156

PostPosted: Fri Oct 23, 2009 1:49 pm    Post subject: Reply with quote

I think this is what you're looking for: http://www.coderambles.com/sleep-wait-command-in-batch-file
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Fri Oct 23, 2009 6:00 pm    Post subject: Reply with quote

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
Code:
ping /?
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Oct 23, 2009 6:24 pm    Post subject: Reply with quote

Kay, thanks guys.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Oct 23, 2009 7:09 pm    Post subject: Reply with quote

just use the window scheduler
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Oct 23, 2009 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Oct 23, 2009 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites