Created
October 29, 2013 13:19
-
-
Save Sitwon/7214492 to your computer and use it in GitHub Desktop.
A batch file to allow you to move multiple directories to a target directory in CMD.
Usage: mv.bat DIR1 DIR2 DIR3 ... TARGET
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
@ECHO OFF | |
if -%2-==-- exit /b | |
set last="" | |
for %%i in (%*) do set last=%%i | |
for %%i in (%*) do ( | |
if %%i==%last% exit /b | |
move %%i %last% | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. Works great