Please go through the below details to create a Task Scheduler. It can be done by two ways either creating console application, windows application or creating a window service. What I have done is created a windows application and schedule the task.
[1]:First create a windows form application
[2]:Write your all functionality into a function and call that function of Form_Load
[3]:Build this application once
[4]:Right click on solution(Open folder in windows explorer)
[5]:click on bin folder then goto inside debug folder
[6]:Copy all this files and put into some specific location in C drive with meaningful folder name
Like:
C:\MyScheduler\paste here
[7]:Type Task Scheduler in run and click on it
[8]:Create a task scheduler and given proper name to it
[9]:Given appropriate name
[10]:Goto action tab
[11]:Click on new button
[12]:Click on browse button and locate your folder where you have put your all files from bin\debug folder and select the exe file only
[13]:Click on Trigger tab and click on new button and set the time which I have selected
[14]: Press ok button and now your scheduler is ready which will run according to the selected time.
0 Comment(s)