using System;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespace Scheduler
{
classProgram
{
staticvoid Main(string[] args)
{
Console.Write("Message
Send");
Console.ReadLine();
}
}
}
Note : I have created simple console application. Which run
properly on command line
Now
Schedule this application as a schedule task in windows 7 OS
Step 1
First of all copy the executable file of this application and
keep it into separate folder on the target machine.
For this Right click
on your project Name within solution ExplorerèOpen folderin file ExplorerèbinèdebugèCopy all file
Step 2
Now Create a folder on your target machine ( here I have
created D:\Scheduler) and paste all copied item into this folder
Step 3
Now Click on Startècontrol panelè Choose
Large Icon è
Administrative tool è task
scheduler
Now task scheduler windows will be open with three pane
Step 4
In the Actions pane on the right, click “Create Basic Task…”
Step 5
The
Create Task Wizard will open
Enter a
name and description for the task
Step 6
Click
“Next” to choose a trigger for the task
The
trigger dialog for choosing when the task will run opens
Choose
whether to run the task at specified times or when some event occurs
Click
“Next”
Step 7
If you
chose a time interval, a dialog to configure the times will open. Make a choice
and click “Next”
Step 8
The
“Action” dialog will open. Generally, you will choose “Start a Program”
Click
“Next”
Step 9
The
dialog for “Start a Program” will open. Enter or browse to the executable file
or script you want to run
If
needed, add arguments for your program or script
Step 10
Click “Next”
The “Summary” window will open where you can check to see if
everything was entered as you wished.
Click “Finish”
Author-Sayta Prakash
Good one...
ReplyDelete