How to copy a file from 1 pc to another pc in network using batch file

If you dont want to setup the share we can still attempt to access it via the hidden share E$
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
i went into the file and click properties... the Location is...

E:\Online Games\Battle of Immortals\Battle of the Immortals

The folder Battle of Immortals is already shared and its network path is \\ABJANINE35\Battle of Immortals
The folder Online Games is already shared and its network path is \\ABJANINE35\Online Games
The drive itself is already shared and its network path is \\Abjanine35\e
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
Go to an explorer and verify that you can access \\ABJanine35\Battle of the Immortals

If you can then use this command string.

robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir

That was 100% my fault it didn't work sorry about that.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
i went to an explorer and accessed \\ABJanine35\Battle of Immortals
i tried to copy and paste
robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir
and run it to ABJanine34.... it wont work :-)
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
Can you post the error message again?

Also like i said before it would be better to accomplish the if you only replace the files that you need to replace.

Do you know what files you need to keep updated?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
when i run the batch file the command prompt will open and close in a blink of an eye :-)
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
are you running this as a batch file? or just a command?

If its a batch file add a new line and place the word pause
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
pause
robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir

yes im running it as a batch file
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
you want to say

robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir

pause


-edit-

If you want a log file to make sure the command was successful. you change the command to look like this.

robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir /log:Copy_Battle_log.txt

This will create a text file that logs your robocopy command. It will be in the same folder as the batch file.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
error
 

Attachments

  • Error.PNG
    Error.PNG
    17.6 KB · Views: 8

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
its already running and no error yet but i dont know if its good... is it gonna copy all the files of the folder?
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
Thats good. Remember that with the /mir its only going to copy what it thinks is new.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
oh so this code is just copying the newer files?

robocopy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine35\Battle of the Immortals" /e /mir
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
Yes. Thats what you asked for. If you want it to replace all just remove the /mir this time.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
ok thank you very much i hope this would work just fine :-) its still copying.... thank you
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
No problem I'm glad i could assist. If you need anything else just post back.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
ok thanks again
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit
OS
Windows 7 Professional 32bit
Back
Top