logo

ROBOCOPY (Windows Server)
FRED SHIKE posted at Monday, April 20, 2009 3:38 PM

tring to copy my shared dirve to the d: drive of a diferent serve(valley2) .

Is the following correct ?

ROBOCOPY  d: \shared\*.*  d:\\valley2\backup /mir /copyall

 


 

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0
hi
Bill Look provided a rated reply to FRED SHIKE on Monday, April 20, 2009 9:49 PM

hi

try this

xcopy w:\folder\*.xls f:\Budget\Data\

w is network mapped drive
thank you
Reply    Reply Using Power Editor
My name is Bill Look, and my profession is software developing since 2006 (having more than 4 years experience) and holding MCTS,MCPD certifications and most of developments are based on MS technologies .Specifically ASP.NET ,Sharepoint and Widows Mobiles. I have worked on ERP systems also.
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0

ROBOCOPY
Venkat K replied to FRED SHIKE on Monday, April 20, 2009 10:11 PM

Create this as a batch file then run it twice.

@ECHO OFF
SETLOCAL
 
SET _source
=\\FileServ1\e$\users
 
SET _dest
=\\FileServ2\e$\BackupUsers
 
SET _what
=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /
B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /
MIR :: MIRror a directory tree
 
SET _options
=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /
W:n :: Wait time between retries
:: /LOG :: Output log file
:: /
NFL :: No file logging
:: /NDL :: No dir logging
 
ROBOCOPY %_source% %_dest% %_what% %_options%
Reply    Reply Using Power Editor
  Rank Winnings Points
February 19 $0.00 13
January 25 $0.00 15

RE::ROBOCOPY
egg egg provided a rated reply to FRED SHIKE on Monday, April 20, 2009 10:42 PM

You could use any of the following for performance related issues too taking care of...
robocopy \\sharedDRive\shared d:\\valley2\backup /w:30 /r:13

robocopy /mir \\SharedDrive\shared\ d:\\valley2\backup\ /XD dirs $RECYCLE.BIN /XN /XO

In your syntax, i suppose it works if you remove *.*


Reply    Reply Using Power Editor
Having around 7 years of experience in designing and implementing software products including windows, console, service oriented and ofcourse predominantly on Web with .Net, XML, Javascript, Oracle, SQL Server
  Rank Winnings Points
February 5 $94.00 116
January 4 $100.00 362


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos










  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010