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   #1

Windows 7 Professional 32bit
 
 
How to copy a file from 1 pc to another pc in network using batch file

Help me make a batch file that copies a file from one computer to another computer in a network...

PC1 = Source
PC2 = Destination

I want to copy a file from PC1's Drive E: to PC2's Drive E:

My System SpecsSystem Spec
.

14 Jan 2013   #2

Windows 7 Professional 32bit
 
 

Yes I want to copy files from PC1 to PC2 over the network...

PC1's Drive E:\Online Games\Battle of Immortals\Battle of the Immortals
to
PC2's Drive E:\Online Games\Battle of Immortals\Battle of the Immortals
My System SpecsSystem Spec
14 Jan 2013   #3

Windows 7 Ultimate x64
 
 

why not share the file in your source system and get it trough the network
see these:
HomeGroup - Link your Online ID and Share Files
Homegroup - Change File and Folder Sharing Settings
Sharing and Permissions

if there is any problem use team viewer to do so, get it from teamviewer.com
My System SpecsSystem Spec
.


14 Jan 2013   #4

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 

Quote   Quote: Originally Posted by mmkarimi View Post
why not share the file in your source system and get it trough the network
see these:
HomeGroup - Link your Online ID and Share Files
Homegroup - Change File and Folder Sharing Settings
Sharing and Permissions

if there is any problem use team viewer to do so, get it from teamviewer.com

Hi there
This is TOTAL overkill for what the OP wants

Here's the CORRECT answer

get into notepad editor and enter statements like this with all the files you want to copy one line for each
and then save the file as either a cmd or bat file

then get into a command prompt, change to the directory where you've stored the cmd or bat file and type the name in

your batch file should run.

Note you can use wild cards such as d*gshy*e for example

have a look at a few more DOS cmds like XCOPY as this might be better for what you want.

copy C:\source.txt C:\destination.txt


the first C is the source directory -- the 2nd C is the target directory -- if you are on a network the directory will be something like \\mynetwork_directory\subdirectory\filename.

If you are lucky enough to have mounted the network directory as a local drive say Q: then instead of the network file directory (the \\part) you can simply use a drive letter Q: for example.

Have a look at this tutorial for more information on commands and batch files.

MS-DOS help and commands

cheers
jimbo
My System SpecsSystem Spec
14 Jan 2013   #5

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 

Quote   Quote: Originally Posted by AddRAM View Post
Map a network drive.
and then do what --- ?? don't think you've answered the question here.

I refer you back to my previous post in this thread.

BTW on addition to my first post BOTH computers need to be on the LAN that you want to copy the file(s) from.

If only 1 computer is available or connected to the lan then the easiest way is to copy the file(s) on to a USB stick with windows explorer from computer 1 --then copy the USB stick data to computer 2.

(another easy way is often to compress the files with 7-z or similar then EMAIL to the relevant computers -- change the .exe to something like .zzz as a lot of email systems won't allow sending or receiving .exe files --especially office ./ corporate lans).


Cheers
jimbo
My System SpecsSystem Spec
14 Jan 2013   #6

Windows 7 Professional 32bit
 
 

thanks mmkarimi... but the reason i want to make a batch file is to help my brother update the online games in 20 computers by overwriting or copying big files in one click from 1 source computer...
instead of turning on all 20 computers and updating all online games, he'll just have to update one computer and just copy the update or overwrite the old files in all 19 computers...
My System SpecsSystem Spec
14 Jan 2013   #7

Windows 7 Ultimate x64
 
 

but I'm still insist on my answer, just share the folder,
go to the destination computer, type://SourceComputerName,then type the user/pass and get your files

the most simplest solution would be teamviewer and it always work without any network problems. you can even do much more than copping files


so use sky drive, it gives you 7Gb shared information in the web, you upload your files and it will sync all your computer at ones

see this: skydrive.live.com/
My System SpecsSystem Spec
14 Jan 2013   #8

W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi
 
 

Hi there
the Batch solution then -- that's how to do it easily

Cheers
jimbo
My System SpecsSystem Spec
14 Jan 2013   #9

Windows 7 Ultimate x64
 
 

I have to agree that a batch file will be your quickest solution. just make sure that the drives are shared first.
My System SpecsSystem Spec
14 Jan 2013   #10

Windows 7 Professional 32bit
 
 

parman - i need to share my drive E: and the folders to be copied?
My System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: How to copy a file from 1 pc to another pc in network using batch file
Thread Forum
Batch file to copy files from C drive to USB Backup and Restore
Windows7 Batch File Copy Possible? Performance & Maintenance
Batch file copy made easy Performance & Maintenance
Solved Batch File that grabs file names from folder to insert into batch file General Discussion
Solved Creating Batch File with Robo Copy General Discussion
batch file to copy from virtual machine to USB Virtualization
How to make a multible copy batch file Software

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 10:10 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33