Things I want to do
I noticed that there are some scheduling tasks on Windows 11 that have been failing since mid-May 2023.
I haven’t edited the tasks or the files to be executed, but they’ve started failing. If you’re using custom tasks in Task Scheduler, I recommend checking to make sure they’re running correctly.
Failing tasks
The tasks that failed were the following:
| Tasks to execute | bat file |
| Previous execution result (Error code) | 0x1 |
| Adding arguments | > log.txt Log output |
| Start | folder containing the executable batch file |
Avoidance strategy
The cause of the problem this time was the argument ‘> log.txt’.
Removing the argument fixed the problem; it now works correctly.
I thought the problem might be that the file path wasn’t an absolute path, so I tried changing it to an absolute path, but this didn’t solve the problem.
If you absolutely need to perform the same action, I recommend creating a new batch file and then running the batch file specified in the execution task from within that new batch file.


コメント