Skip to content

Instantly share code, notes, and snippets.

@rsjaffe
Created August 17, 2018 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsjaffe/5ab2d9cf263e647cd00fbbf07a5a6eec to your computer and use it in GitHub Desktop.
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.
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