I am trying to use xcopy on a remote machine with psexec but i keep getting an error 4 and would love some brainstorming as to why that error might come up. The actual error says:
Invalid drive specification
0 File(s)
xcopy exited on 'remote machine' with error code 4
The command I am using is:
psexec \'remote machine' -u 'user' -p 'pass' xcopy 'source path of file' 'destination path'
Both file paths are located on the remote machine. I am typing the command on my local machine. Any advice or questions are very welcome. Thanks!
Best Answer
It seems that error 4 means: "Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line."
EDIT: Microsoft's page on XCOPY