Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi All,
Can any one tell me how to connect to another pc and transfer files from that pc to our pc by using a batch script.
Thanks In Advance

A few assumptions I will make:
1. You are doing this over an internal network
2. You have administrative rights on both machines
3. You want to copy, rather than move the files, to the target machine
Connect your PCs through either a switch or crossover cable. If your login is different on each machine, when starting the script you will be prompted to authenticate.
Create a folder in "My Documents" on the remote machine, name it "Transfer" and move all the files you want to copy into that folder.
Create the same named folder in the same location on the target machine to copy the files to.
For this script's purposes:
IP Address of machine you want to take the files from = 10.0.0.10
Your admin name on the remote machine = John
Your admin name on the local machine = Maria
Location of files on 10.0.0.10 = c:\Documents and Settings\John\My Documents\Transfer
Location on the target machine you want to place the files = c:\Documents and Settings\Maria\My Documents\Transfer
Open notepad and type in the following:
Net use z: "\\10.0.0.10\c$\Documents and Settings\John\My Documents\Transfer"
robocopy z:\ "c:\Documents and Settings\Maria\My Documents\Transfer"
Pause
Net use z: /delete
Then save this file on the desktop of the local machine and name it "Transfer.bat". To start the script, simply double click on it. Let me know how it works out for you.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |