I am trying to use the following batch script and it is failing with system error 53 network path not found. I want to copy a file from a server in the UNC path to my local drive. I am using Windows 7. Since I am using my adminID do I need to use a command linke "runas adminID cmd"?
To add insult to injury, it is also giving me an error on the copy command probably because the net use did not work. I hope I have provided enough information for you to point me in the right direction.
net use z: \\MyServer\D$\"Program Files\ibm\cognos\c10"\ /user:domain\admID PassW0rd
xcopy z:\myfilet.txt C:\"Program Files (x86)\IBM\cognos\c10\myfile.txt"
net use z: /delete
Thanks,
RFrazier
To add insult to injury, it is also giving me an error on the copy command probably because the net use did not work. I hope I have provided enough information for you to point me in the right direction.
net use z: \\MyServer\D$\"Program Files\ibm\cognos\c10"\ /user:domain\admID PassW0rd
xcopy z:\myfilet.txt C:\"Program Files (x86)\IBM\cognos\c10\myfile.txt"
net use z: /delete
Thanks,
RFrazier