Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > robocopy to a net-drive path

Reply
Thread Tools Display Modes

robocopy to a net-drive path

 
 
Berg
Guest
Posts: n/a

 
      09-30-2007
I want to copy some files to a different compter with SERVER2003 system and a
share path, how to add logon and password to robocopy command line?
For example: I want to copy \\HOME\testfiles\ to \\SERVER\HOMEBACKUP\ with
logon name: SERVERadmin and passwd:testcopy
so, is the command line as:
robocopy.exe \\HOME\testfiles\ \\server\HOMEBACKUP\ logon:SERVERadmin
passwd:testcopy /ZE /MIR /log+:c:\temp\rocopyfile.log

is it correct? the log file revelaed wrong logon name and passwd!!
 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      09-30-2007
"Berg" <> wrote...
>I want to copy some files to a different compter with SERVER2003 system and
>a
> share path, how to add logon and password to robocopy command line?
> For example: I want to copy \\HOME\testfiles\ to \\SERVER\HOMEBACKUP\ with
> logon name: SERVERadmin and passwd:testcopy


Hi Berg,

Robocopy does not provide any authentication mechanism of its own. The
design philosophy behind robocopy is that it does one job, very well. Other
aspects of an overall task - like authentication - need to be taken care of
by other tools, which (hopefully) also do their own one job, very well.

The easiest way to work around your problem would be to make an IPC$
connection to the server, before running robocopy. So:

NET USE \\server\IPC$ /u:serveradmin testcopy
robocopy.exe \\HOME\testfiles\ \\server\HOMEBACKUP\ /ZE /MIR
/log+:c:\temp\rocopyfile.log
NET USE \\server\IPC$ /D

The NET USE /D will delete the IPC$ connection as soon as Robocopy has
finished.

Hope it helps,

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Robocopy to an external drive drives me crazy Dag N Windows Vista General Discussion 3 02-29-2008 01:47 PM
Default installation path/drive ? Mr M Windows Vista Installation 4 12-14-2007 06:39 AM
Is there any way to create an absolute/reliable path to a flash drive (name it maybe)? JethroUK© Windows Vista General Discussion 3 10-15-2007 07:03 PM
Changing default path of "My Documents" (User files)to D: drive? math Windows Vista File Management 4 07-17-2007 12:12 AM
Robocopy Dag N Windows Vista General Discussion 1 09-23-2006 08:24 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59