Skip to content

Instantly share code, notes, and snippets.

@Splode
Created March 28, 2019 22:15
Show Gist options
  • Save Splode/56f5ebf7dca3db60fae144e01efc95e5 to your computer and use it in GitHub Desktop.
Save Splode/56f5ebf7dca3db60fae144e01efc95e5 to your computer and use it in GitHub Desktop.
Recursively copy directory on Windows and log output to file
cd C:\Users\MT_User\scripts
IF NOT EXIST .\logs mkdir .\logs
robocopy C:\Users\MT_User\scripts\test C:\Users\MT_User\scripts\backup /s >> .\logs\%date%.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment