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??
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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.