I have a simple
test.cmd script which contains one line:
echo test > log.txt
If I right click the script file and
Run as Administrator, it runs fine and a log.txt file is saved in the folder.
However, when I created a task in Task Scheduler which triggers this script on a specific time, there is no
log.txt saved even though everything seemed to have worked - I can see the Last Run Result as
"The operation completed successfully". I tried to click the Run button in the Task Scheduler to run this task as well, and the same thing, no
log.txt is generated.
How can I make this scheduled task work? Am I missing something here?