Click here to Skip to main content
16,016,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I would like to create console application so that I can schedule an exe in Windows task scheduler to run on some time interval. I am using Visual Studio 2012, but while creating console application, VS2012 is making it ClickOnce which cause me to host an exe in Windows task scheduler.

Please help on either:
1. How to create Console application (exe) using Visual Studio 2012?
2. How to schedule ClickOnce in Windows task scheduler to run for some time interval.

Thanks in Advance!
Posted
Comments
bbirajdar 25-Feb-14 22:43pm    
You should write a Windows Service

Try
How to create a task in Windows Task Scheduler[^]

Click once applications should automatically update when you strat the application and you need not check updates at intervals.
 
Share this answer
 
You just create your simple Console Application. It's normally a project type when you create a new project.

ClickOnce is for a packaged deployment. You don't need it. You can simply compile your application, go into the project folders in Explorer and copy the .EXE and .DLL's, if any, to your installation point and setup the Task Scheduler manually.

If you really wanted to automate things a bit more, you could write your application to accept command line parameters that will setup the Task Scheduler job for you.
 
Share this answer
 
v2

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