I have a task in Task Scheduler to run a batch file that resides on a local hard drive.
The batch file simply runs XCopy to copy files from a mapped drive to a folder on the local drive.
When the batch file is run from the command line, it functions perfectly.
When it's run from Task Scheduler, the XCopy command displays the error:
Invalid drive specification
If it matters, the drive is a NAS and is mapped to the computer using local credentials from the NAS (there is no active directory in the network).