You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
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% |
![]() |
Source code |
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% |
-