Created
August 17, 2018 23:45
-
-
Save rsjaffe/5ab2d9cf263e647cd00fbbf07a5a6eec to your computer and use it in GitHub Desktop.
Windows batch file to move a directory and create a junction from its prior location to its new one. Useful for creating space on a small ssd.
This file contains hidden or 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
robocopy %1 %2 /E /MOVE /R:3 /W:2 | |
IF NOT ERRORLEVEL 2 mklink /j %1 %2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment