Access network drives from command prompt?

D

Don Culp

I have two computers that are connected via Ethernet cable. From a command
prompt, how can I access the drives on the other computer. For example:

xcopy "folder on computer A" to "folder on computer B"

where computer A is the local computer and computer B is the remote
computer. I think what I need is the correct syntax for the address of
computer B.

The two computers are running W2K and XP Pro.

Thanks,
Don Culp
 
M

Michael W. Ryder

Don said:
I have two computers that are connected via Ethernet cable. From a command
prompt, how can I access the drives on the other computer. For example:

xcopy "folder on computer A" to "folder on computer B"

where computer A is the local computer and computer B is the remote
computer. I think what I need is the correct syntax for the address of
computer B.

The two computers are running W2K and XP Pro.

Thanks,
Don Culp
The command should be:
xcopy "folder A name"\*.* \\"address b"\"folder name" /D /S /R /Y
if you want to copy everything in folder A to a folder on computer B.
The switches at the end copy only newer files, all subdirectories, and
does not prompt before overwriting existing files.
 
S

Steve Winograd [MVP]

"Don Culp" said:
I have two computers that are connected via Ethernet cable. From a command
prompt, how can I access the drives on the other computer. For example:

xcopy "folder on computer A" to "folder on computer B"

where computer A is the local computer and computer B is the remote
computer. I think what I need is the correct syntax for the address of
computer B.

The two computers are running W2K and XP Pro.

Thanks,
Don Culp

Map a network drive, which assigns a drive letter to the folder on
computer B. For example:

net use x: \\computerb\folder
xcopy "folder on computer A" x:\
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
D

Don Culp

To simplify I tried the following:
dir \\Comp-B\d:\temp
where Comp-B = name of computer b (as shown when I view Windows' Properties
of computer b)

I get:
The network path was not found.

The temp folder does exist on drive d: of Comp-B.

I haven't done anything at the command prompt to set up the network --> the
network currently works through Windows.
 
D

Don Culp

When I tried:
net use x: \\Comp-B\d:\temp
where Comp-B = name of computer b (as shown when I view Windows' Properties
of computer b)

I get:

System error 67 has occurred.
The network name cannot be found.

The temp folder does exist on drive d: of Comp-B.

I haven't done anything at the command prompt to set up the network --> the
network currently works through Windows.
 
M

Michael W. Ryder

Don said:
To simplify I tried the following:
dir \\Comp-B\d:\temp
where Comp-B = name of computer b (as shown when I view Windows' Properties
of computer b)

I get:
The network path was not found.

The temp folder does exist on drive d: of Comp-B.

Is the temp folder or drive D shared? Does the share have a different name?
If the temp folder itself is shared as 'temp' your command would be:
dir \\Comp-B\temp
otherwise, if the D drive is shared as 'D' the command would be:
dir \\Comp-B\D\temp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top