The problem:
I created an window console application and run it as a windows scheduled task. But the console window flashes and goes back every time the app is run.
The solution
Option 1: (Best Option)
Change the output type from Console Application to Windows Application. This can be done under Project -> Properties -> Application in Visual Studio:
Option 2: Make a window service app using windows servicebase class
Going to try option one today or tomorrow for a windows scheduled task cron job project. An email notification program that will run once a day.
ReplyDeleteI'll leave a comment later to tell how it goes.