Monday, June 29, 2015

Recursively move all files to the current directory using a .BAT/.CMD file

move_here.bat

@echo off
set root=%~d0%~p0
for /R /D %%f in (*) do move /y "%%f\*.*" "%root%"

No comments:

Post a Comment