Sie sind nicht angemeldet.
Lieber Besucher, herzlich willkommen bei: Aqua Computer Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
:@ECHO OFF SETLOCAL SET _source=F:\ SET _dest=\\SERVER\H$\ SET _what=/E /ETA /XO /PURGE :: /E :: Copies all subdirectories (including empty ones). :: /ETA :: Shows estimated time of completion for copied files. :: /XO :: Excludes Older files. :: /PURGE :: !!!VORSICHT!!! Deletes destination files and directories that no longer exist in the source !!!VORSICHT!!! SET _options=/R:0 /W:0 /LOG:backup.log /TEE :: /R:n :: number of Retries :: /W:n :: Wait time between retries :: /LOG :: Output log file :: /TEE :: Displays output in the console window, in addition to directing it to the log file specified by /LOG or /LOG+. ROBOCOPY %_source% %_dest% %_what% %_options% |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
:@ECHO OFF SETLOCAL SET _source=C:\ SET _dest=E:\ SET _what=/MIR :: /MIR :: Mirrors a directory tree (equivalent to running both /E and /PURGE). SET _options=/R:0 /W:0 /LOG:backup.log /TEE :: /R:n :: number of Retries :: /W:n :: Wait time between retries :: /LOG :: Output log file :: /TEE :: Displays output in the console window, in addition to directing it to the log file specified by /LOG or /LOG+. ROBOCOPY %_source% %_dest% %_what% %_options% |
-