I've a little c# application, and I have to create a scheduled task for this application.
I have a Setup which installs the application, and the best case will be that I can set this windows scheduled task at the installation.
Any idea if it's possible and/or how?
Thank you very much
Open Start, Search for "Task Scheduler" and press enter to open "Task Scheduler". Right-click on the "Task Scheduler Library" and click on the "New Folder" option. Enter the name of the New folder and click on the "OK" button. Navigate the following: Task Scheduler Library > New Folder, then click on "Create Task".
Adding the scheduled taskClick on User Configuration > Preferences > Control Panel Settings > Scheduled Tasks and create a new Scheduled Task. Select “Create” for the action, give the task a name, and specify NT AUTHORITY\System as the user account to run the task.
There is a Task Scheduler Managed Wrapper on codeplex - this can be used to create a small console application that will setup a task and can be run by your installer.
You can also run the schtasks
command line utility for a similar result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With