Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I run my .NET application in scheduled tasks when I am not logged in

I have a C# console application that just processes data. The problem is that when I log off, the console application ends. If I schedule the application to run at a set time and I am not logged in, the application does not run at all. I can run it interactively by double clicking the exe and I can open scheduled tasks and run it by right clicking and selecting run. As soon as I log out, the application ends. Any help will be greatly appreciated.

like image 918
Peggy A Avatar asked Dec 07 '22 03:12

Peggy A


1 Answers

For XP/Windows Server 2003 open your Scheduled Task and make sure the 'Run only if logged on' checkbox is cleared.

For Windows 2008 select the 'Run whether the user is logged on or not' option.

like image 195
Jay Riggs Avatar answered Dec 09 '22 16:12

Jay Riggs