Skip to content

Instantly share code, notes, and snippets.

Created Mar 28, 2019
What would you like to do?
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