Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

14 Jan 2013   #11
Parman

Windows 7 Ultimate x64
 
 

Yes, but you could try accessing your hidden share on the E drive using
\\PC-Name\E$\Online Games\Battle of Immortals\Battle of the Immortals

Even with that you will have to make sure you have the correct permissions to access the files.


My System SpecsSystem Spec
.
14 Jan 2013   #12
abbynard

Windows 7 Professional 32bit
 
 

can you please help me make the codes...

My Drives are:
C: Windows
D: Files
E: Online Games
My PC's name is ABJanine
Should it looks like this?

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

is that the correct and complete code?
My System SpecsSystem Spec
14 Jan 2013   #13
Parman

Windows 7 Ultimate x64
 
 

copy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine\E:\Online Games\Battle of Immortals\Battle of the Immortals"

Its also a single line just didnt show up that way. (update I cant type today lol)

This will copy the Battle of the Immortals folder to the ADJanine PC. You need to quotes since there are spaces in the name.
My System SpecsSystem Spec
.

14 Jan 2013   #14
abbynard

Windows 7 Professional 32bit
 
 

how bout if there's just a new update and i want to copy only the update and overwrite the old file?

copy "E:\Online Games\Battle of Immortals\Battle of the Immortals" "\\ABJanine\E:\Online Games\Battle of Immortals\Battle of the Immortals" /overwriteolder

is that the correct codes?
My System SpecsSystem Spec
14 Jan 2013   #15
Parman

Windows 7 Ultimate x64
 
 

I'm not sure if thats an option with the copy command, but it can be done with robocopy with the /mir option.

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

Code:
/e = copy all sub-folders, even empty ones
/mir = mirror (check the files in the destination, and only copy newer files)
Warning
Use the /MIR option with caution - it has the ability to delete a file from both the source and destination under certain conditions.

This typically occurs if a file/folder in the destination has been deleted, causing ROBOCOPY to mirror the source to the destination. The result is that the same files in the source folder are also deleted. To avoid this situation, never delete any files/folders from the destination - delete them from the source, and then run the backup to mirror the destination to the source.

If in doubt, do not use the /MIR option, but be aware that backups will take longer.


source:
ROBOCOPY - Create Backup Script


-update-

I would also test this out before you submit it to your actually game file. Remember that this will replace everything in the folder that is considered newer. I could see how replacing the wrong file will cause the game to quit working. Are there specific files that you need to keep updated?
My System SpecsSystem Spec
14 Jan 2013   #16
abbynard

Windows 7 Professional 32bit
 
 

There's and error...


Attached Images
How to copy a file from 1 pc to another pc in network using batch file-error.png 
My System SpecsSystem Spec
14 Jan 2013   #17
mmkarimi

Windows 7 Ultimate x64
 
 

did you try sky drive, what you guys are discussing here is good for just one time these codes don't sync information.
My System SpecsSystem Spec
14 Jan 2013   #18
Parman

Windows 7 Ultimate x64
 
 

if you go to a explorer and and go to

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

do you get a permission denied error.


or can you even access \\ABJanine
My System SpecsSystem Spec
14 Jan 2013   #19
abbynard

Windows 7 Professional 32bit
 
 

i got this error...


Attached Images
How to copy a file from 1 pc to another pc in network using batch file-error-2.png 
My System SpecsSystem Spec
14 Jan 2013   #20
Parman

Windows 7 Ultimate x64
 
 

did you go into the \\ABJanine35 PC and share the folder? Is the location might be "\\ABJanine35\Battle of Immortals"

Sorry i had a brain fart about that.
My System SpecsSystem Spec
Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Batch file to copy files from C drive to USB
Hi all, To increase our backup solutions, we have decided to backup our SQL database every hour to a folder within the C drive (we couldn't get it to backup straight to a USB drive). So now we need a way (batch file best solution?) to copy these files to the USB drive, lets say every 1.05hours...
Backup and Restore
Windows7 Batch File Copy Possible?
Fellow Forum Members, I have two external hard drives I'm calling Hard Drive A and Hard Drive B. Hard Drive A & B are mounted to external USB cradles. Both USB cradles are connected to the same PC containing Hard Drive C. My objective is to transfer all data files, folders, sub folders from both...
Performance & Maintenance
Batch file copy made easy
Lately I've noticed a lot of new Windows users don't really know how powerful command line tools Windows 7 includes. Here's one, making batch file copy easy and almost automated: Robocopy. To use it, just open the command prompt and type robocopy /? to get all the options. Here's the summary in...
Performance & Maintenance
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
Creating Batch File with Robo Copy
Hi I am currently running the following to supposedely create a directory IE V:\Backup Folder\Pictures\Backup 21-05-2012 robocopy /e "c:\users\jon\pictures" "v:\Backup Folder\Pictures\Backup %date:~-10,2%-%date:~-7,2%-%date:~-4,4%" Evrything works fine except the backed up pictures folder is...
General Discussion
batch file to copy from virtual machine to USB
If C:\ is the root of the virtual machine and U:\ is the USB stick, I can PERFORM "copy C:\folder\** U:\folder", but that line in a batch file does not work. How can I fix that ?
Virtualization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App