Console App - Scheduled Task - Text File
-
I have created a console app where it will finally create a text file. Everything run well when I run the program manually but not when I used scheduled task to run it. Anyone know the reason?
-
I have created a console app where it will finally create a text file. Everything run well when I run the program manually but not when I used scheduled task to run it. Anyone know the reason?
You haven't described what goes wrong, so how can anybody guess what could be the cause? Have you run the program in the debugger?
The difficult we do right away... ...the impossible takes slightly longer.
-
You haven't described what goes wrong, so how can anybody guess what could be the cause? Have you run the program in the debugger?
The difficult we do right away... ...the impossible takes slightly longer.
When run with scheduled task, .exe run properly but it doesn't create text file as writen in codes. It run well and a text file create when I run it manually.
-
When run with scheduled task, .exe run properly but it doesn't create text file as writen in codes. It run well and a text file create when I run it manually.
Maybe it is a permissions issue. Is the scheduled task running as the same user as when run manually? Have you attached a debugger to it when it's run as a scheduled task?
The difficult we do right away... ...the impossible takes slightly longer.
-
When run with scheduled task, .exe run properly but it doesn't create text file as writen in codes. It run well and a text file create when I run it manually.
-
-
I have created a console app where it will finally create a text file. Everything run well when I run the program manually but not when I used scheduled task to run it. Anyone know the reason?
Does the task scheduler display an error code next to the task when it runs? Also, check the Application event log around that time and see if there are any errors (although as Eddy mentioned, it's a very good idea to catch any exceptions and log them for later debugging - but the Event Viewer might display the exception as well).
The shout of progress is not "Eureka!" it's "Strange... that's not what i expected". - peterchen
-
I have created a console app where it will finally create a text file. Everything run well when I run the program manually but not when I used scheduled task to run it. Anyone know the reason?