Created
March 28, 2019 22:15
-
-
Save Splode/56f5ebf7dca3db60fae144e01efc95e5 to your computer and use it in GitHub Desktop.
Recursively copy directory on Windows and log output to file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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