Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a desktop software . Client requirement it will run in every hour automatically. Do i need to create windows services ?

Thanks in Advance
Posted
Comments
[no name] 29-Oct-12 1:17am    
Pls elaborate basic requirements of client or your software purpose of use

You can, but also you can use the service which already exists, called Windows Task Scheduler, see:
http://en.wikipedia.org/wiki/Task_Scheduler[^],
http://msdn.microsoft.com/en-us/library/aa383614.aspx[^],
http://msdn.microsoft.com/en-us/library/aa384006%28v=VS.85%29.aspx[^].

See the last link above for use of the Windows Task Scheduler. You can use its API in your program using Task Scheduler Managed Wrapper, see http://taskscheduler.codeplex.com/[^].

But if can be even simpler.
You can use Windows Task Scheduler using Windows utilities AT.EXE or SchTasks.EXE, see:
http://en.wikipedia.org/wiki/At_(Windows)[^],
http://technet.microsoft.com/en-us/library/bb490866.aspx[^],
http://en.wikipedia.org/wiki/Schtasks[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/bb736357%28v=vs.85%29.aspx[^].

—SA
 
Share this answer
 
Comments
[no name] 29-Oct-12 1:49am    
Good :) my 5
Sergey Alexandrovich Kryukov 29-Oct-12 1:51am    
Thank you, Maulik.
--SA
Neetesh Agarwal 29-Oct-12 6:35am    
Thanks Sir...............
Sergey Alexandrovich Kryukov 29-Oct-12 10:52am    
You are very welcome.
Good luck, call again.
--SA
I guess Windows_Task_Scheduler[^] will serve the purpose.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-Oct-12 10:52am    
That's right, my 5. We probably answered at the same time.
--SA
Sushil Mate 29-Oct-12 23:46pm    
Thank you :-).. just trying to matching up with you ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900