Citat:
Ursprungligen postat av kolja
Kan jag bara byta xcopy till robocopy i bat-filen utan att göra andra förändringar?
Det vet jag inte.
Citat:
Ursprungligen postat av kolja
/H /R /Y /D /S /Q pametrarna i xcopy fungerar bra för mig, men jag har glömt vad de gjorde individuellt och orkar inte kolla vad motsvarande parametrar heter i robcopy. Heter dom samma är det ju lungt.
Det är ju inte så många parametrar att gå igenom, xcopy /? | find "/H" visar ju t ex att /H gör så att xcopy kopierar dolda och systemfiler.
Citat:
Ursprungligen postat av kolja
Samtidigt får jag lite "varför laga något som fungera"-vibbar, men om är xcopy gamalt och robocopy gör samma sak får jag väl byta...
Om det funkar som det ska kan du säkert fortsätta använda xcopy utan problem, men då går du samtidigt miste om eventuella förbättringar.
Citat:
Robocopy is notable for capabilities above and beyond the built-in Windows copy and xcopy commands, including the following:
* Ability to tolerate network outages and resume copying where it previously left off (incomplete files are noted with a date stamp corresponding to 1980-01-01 and contain a recovery record so Robocopy knows from where to continue).
* Ability to correctly copy attributes, owner information, alternate data streams, auditing information, and timestamps by default, without the need for numerous often forgotten command line switches.
* Ability to correctly copy NTFS ACLs, (when /COPYALL provided), and to assert the Windows NT "backup right" (/B) so an administrator may copy an entire directory, including files denied readability to the administrator.
* Persistence by default, with a programmable number of automatic retries if a file cannot be opened.
* A "mirror" mode, which keeps trees in sync by optionally deleting files out of the destination that are no longer present in the source.
* Ability to copy large numbers of files that would otherwise crash the built-in XCOPY utility.
* A progress indicator on the command line that updates continuously.
http://en.wikipedia.org/wiki/Robocopy