Skip to content

Instantly share code, notes, and snippets.

@Sitwon
Created October 29, 2013 13:19
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 Sitwon/7214492 to your computer and use it in GitHub Desktop.
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
@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%
)
@crm8889
Copy link

crm8889 commented Apr 23, 2016

Thanks for this. Works great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment