copy command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi! how do i copy or xcopy a file in c drive eg. c:\test\test.txt to a remote
host eg. PC name : "abc"'s c:\test ?

Thanks.
 
Map a network drive to the remote machine using the NET USE command, and
then use that drive letter.

NET USE <driveletter> <path>

Joseph W. Conway, MCSE
Windows Server Group

This posting is provided "AS IS" with no warranties, and confers no rights.
 
hi! Must i use the net use command? My intension to use this copy or xcopy
command is to copy a file to all the PCs in the company (100++ client).
Please advise. Thanks.
 
If you need to hit that many machines, it might make more sense to put it
on a publically available share.

Joseph W. Conway, MCSE
Windows Server Group

This posting is provided "AS IS" with no warranties, and confers no rights.
 
dkblee said:
hi! how do i copy or xcopy a file in c drive eg. c:\test\test.txt to a
remote
host eg. PC name : "abc"'s c:\test ?

Thanks.

You can use UNC paths if you need to:
xcopy "c:\myfolder\*.*" " \\computername\sharename\"

Be sure to do an xcopy /? and look at the available swtiches to make xcopy
work the way you want it too.

As far as coping files to a hundred different workstations, there are better
ways of doing it other than using xcopy. Try asking the gurus over at the
scripting and/or cmdprompt.admin groups:

news://msnews.microsoft.com/microsoft.public.win2000.cmdprompt.admin

news://msnews.microsoft.com/microsoft.public.scripting.vbscript

news://msnews.microsoft.com/microsoft.public.scripting.wsh

news://msnews.microsoft.com/microsoft.public.windows.server.scripting

HTH,
Jim
 
Back
Top