i have created one bat file on my local windows machine from local machine i am executing script, I am trying to copy file with bat commands from one windows server to another windows server. server & local machine using same network domain. But when i am run bat file i am getting error. I am using bat script first time i tried to find out solution with seracing diffrent things but i am stucked here.
ERROR 67 (0x00000043) Getting File System Type of Destination \\ABC-server.net\F\Test2\
The network name cannot be found.
Below is the bat script i am using to copy file. Let me know what is wrong with this.
@ECHO ON
NET USE W: \\ABC-server.net\F\Test\ password /USER:username
NET USE X: \\ABC-server.net\F\Test2\ password /USER:username
ROBOCOPY \\ABC-server.net\F\Test \\ABC-server.net\F\Test2 EMP.txt /XO
PAUSE
GOTO EOF
Finally after some brain storming i have created the below snippet code and its working fine. It's copying employee.txt
file from server \\abd67p.net\F$\Test
to \\abd68p.net\F$\Test2
using ROBOCOPY command.
@ECHO ON
NET USE \\abd67p.net\F$\Test /u:server\user_id password
NET USE \\abd68p.net\F$\Test2 /u:server\user_id password
ROBOCOPY \\abd67p.net\F$\Test \\abd68p.net\F$\Test2 employee.txt /XO
PAUSE
GOTO EOF
User contributions licensed under CC BY-SA 3.0