Flea#
2008-03-06 22:48:00 UTC
Hello,
I'm using Schtasks to create a scheduled task on a remote server using the
SYSTEM account to run it. After I create the scheduled task, remote into the
server, I try and run it and it comes back with status of "Could not start".
When I view the log, it says "The system cannot find the file specified.".
The really frustrating problem is I can open the scheduled task, copy the
path and paste it into the run command and it will launch my executable. So
the path IS correct! If I delete the task and create it manually, browsing to
the same executable, it will run just fine! So it seems to be something with
creating it with Schtasks. Here is my command line: Schtasks /create /sc
DAILY /tn AMFCollector /tr "C:\Program Files\SF\AMF\AMFCollector.exe" /s
deviisvm01 /ru System /st 01:00:00
Any help would be appreciated it.
I'm using Schtasks to create a scheduled task on a remote server using the
SYSTEM account to run it. After I create the scheduled task, remote into the
server, I try and run it and it comes back with status of "Could not start".
When I view the log, it says "The system cannot find the file specified.".
The really frustrating problem is I can open the scheduled task, copy the
path and paste it into the run command and it will launch my executable. So
the path IS correct! If I delete the task and create it manually, browsing to
the same executable, it will run just fine! So it seems to be something with
creating it with Schtasks. Here is my command line: Schtasks /create /sc
DAILY /tn AMFCollector /tr "C:\Program Files\SF\AMF\AMFCollector.exe" /s
deviisvm01 /ru System /st 01:00:00
Any help would be appreciated it.
--
http://fleasharp.blogspot.com/
http://fleasharp.blogspot.com/