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

Page 1 of 4 123 ... LastLast

  1. Posts : 18
    Windows 7 Professional 32bit
       #1

    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 Computer


  2. Posts : 18
    Windows 7 Professional 32bit
    Thread Starter
       #2

    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 Computer


  3. Posts : 279
    Windows 7 Ultimate x64
       #3

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

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


  4. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #4

    mmkarimi said:
    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
    https://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 Computer


  5. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #5

    AddRAM said:
    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 Computer


  6. Posts : 18
    Windows 7 Professional 32bit
    Thread Starter
       #6

    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 Computer


  7. Posts : 279
    Windows 7 Ultimate x64
       #7

    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 Computer


  8. Posts : 5,941
    Linux CENTOS 7 / various Windows OS'es and servers
       #8

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

    Cheers
    jimbo
      My Computer


  9. Posts : 881
    Windows 7 Ultimate x64
       #9

    I have to agree that a batch file will be your quickest solution. just make sure that the drives are shared first.
      My Computer


  10. Posts : 18
    Windows 7 Professional 32bit
    Thread Starter
       #10

    parman - i need to share my drive E: and the folders to be copied?
      My Computer


 
Page 1 of 4 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About 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 19:59.
Find Us