Skip to content

Instantly share code, notes, and snippets.

@fnx4
Created March 25, 2021 19:35
Show Gist options
  • Save fnx4/8b2d48c304990dde4318b27e2d5ae9a5 to your computer and use it in GitHub Desktop.
Save fnx4/8b2d48c304990dde4318b27e2d5ae9a5 to your computer and use it in GitHub Desktop.
@ECHO OFF
rem chcp 1251
set input_folder="C:\Users\fnx\GoogleDrive\Books"
set output_folder="F:\Books"
echo input_folder: %input_folder%
echo input_folder: %output_folder%
echo
echo --------------------------------------------
echo in:
dir /a %input_folder%
echo --------------------------------------------
echo out:
dir /a %output_folder%
echo --------------------------------------------
echo
echo Press any key to start
pause
robocopy %input_folder% %output_folder% /r:3 /w:5 /PURGE /MIR
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment