Connect to Other PC Using Batch

Ibm / 8175mqu
February 12, 2009 at 01:31:47
Specs: Microsoft Windows XP Professional, 2.992 GHz / 1014 MB
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

See More: Connect to Other PC Using Batch

Report •

February 13, 2009 at 07:54:05
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 =

Your admin name on the remote machine = John

Your admin name on the local machine = Maria

Location of files on = 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: "\\\c$\Documents and Settings\John\My Documents\Transfer"

robocopy z:\ "c:\Documents and Settings\Maria\My Documents\Transfer"


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.

Report •
Related Solutions

Ask Question