1) Create a new Console Application (WindowsScheduledTask) using Visual Studio .NET.
- This console application contains the code for your scheduled task
- Example: Archive database records, Send email alert
2) Go to Windows Start -> Control Panel -> Scheduled Tasks.
- Clicking Add Scheduled Tasks will launch the Scheduled Task Wizard
- Click on “Browse” to add the scheduled task application (WindowsScheduledTask.exe)
- Set the scheduling properties
3) You can set advanced properties for the task by checking the box at the last segment of the wizard.
- Check “Show multiple schedules” to run the task more than once a day
- You can also set the start date and end date of the task
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment