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
abbynard

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
abbynard

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
mmkarimi

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
http://www.sevenforums.com/tutorials...rmissions.html

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

14 Jan 2013   #4
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 

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
http://www.sevenforums.com/tutorials...rmissions.html

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
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 

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
abbynard

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
mmkarimi

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
jimbo45

Linux CENTOS 7 / various Windows OS'es and servers
 
 

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

Cheers
jimbo
My System SpecsSystem Spec
14 Jan 2013   #9
Parman

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
abbynard

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
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 17:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App