Skip to content

Instantly share code, notes, and snippets.

@Sitwon
Created Oct 29, 2013
Embed
What would you like to do?
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