I want to run Exe after 1 minute when computer starts
Means suppose comp starts at 10:00:00 pm my exe automatically executes at 10:01:00pm

How to do it through program??

Recommended Answers

All 2 Replies

I guess you could drag your program into startup.

To wait one minute use :

#include <windows.h>

int main()
{
     Sleep(60000); // Sleep (Wait) for one minute
}

You're playing with deep stuff.

Google "msdn task scheduler and take a look at the task scheduler scripting objects and interfaces (depending on how you want to do it).

You'll need admin rights to do it.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.