How to execute other programs at the given time?
-
I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.
-
I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.
Why don't you use
Windows
'sScheduled Tasks
(see, for instance [^])? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Why don't you use
Windows
'sScheduled Tasks
(see, for instance [^])? :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]I need implement this function in my program.
-
I need implement this function in my program.
Well, you application may create enties for the windows scheduler, se, for instance [^]. It is IMHO the cleanest way. [added] Try also to use
CodeProject
's article search engine [^], it's free... :rolleyes: [/added] :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]modified on Thursday, February 5, 2009 8:54 AM
-
I need implement this function in my program.
Task scheduler[^]? That's the API behind Windows Scheduled Tasks. You're much better off using facilities built into the OS than coding an equivalent yourself.
-
I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.
Do you need to Basic class for using the Microsoft Task Scheduler[^]?
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )