samsquared2
New Member
- Joined
- Aug 19, 2025
- Messages
- 8
- Thread Author
- #1
I have a command file (.bat) I run to copy some files from my Windows 11 PC to another PC. When I double-click the .bat file on my PC, it runs and successfully copies the files. When I run it using Task Scheduler, it runs the command file but no files are actually copied. I piped the output to a text file and for each of the 5 xcopy lines it says 0 File(s). It is not the case that files are actually copied when I double-click it and therefore there are no changed files to copy when I use Task Scheduler because for testing I changed the command file to use the /L option to see what would be copied.
The task runs with highest privileges and can run whether or not I am logged in or not. This task ran successfully from a Windows 10 PC for a long time. Initially I exported the task from that machine and imported it to the Win 11 PC. I then disabled that task and set up a new one from scratch but that produced the same results.
What could be causing his behavior?
The task runs with highest privileges and can run whether or not I am logged in or not. This task ran successfully from a Windows 10 PC for a long time. Initially I exported the task from that machine and imported it to the Win 11 PC. I then disabled that task and set up a new one from scratch but that produced the same results.
What could be causing his behavior?