No permission to write a file from task scheduler?
问题 I got a batch file that will run a c++ program and output to a file with ">" redirection. This file is to be run by task scheduler. I found out that when the batch file is ran from task scheduler, it claims "access is denied". The batch file runs fine until it reaches that ">" redirection part. (I see that the whole batch can run finely without ">") I have tried running the task scheduler as an administrator as well, but I still got "access is denied". Is there a way around this? 回答1: There