Skip to content

Instantly share code, notes, and snippets.

@naqushab
Last active January 16, 2018 13:24
Show Gist options
  • Save naqushab/303b0fcaab86682d35978fd12abd010e to your computer and use it in GitHub Desktop.
Save naqushab/303b0fcaab86682d35978fd12abd010e to your computer and use it in GitHub Desktop.
Move all files one up folder
for /f "delims==" %%i in ('dir /a:d /b') do for /f "delims==" %%f in ('dir %%i /a:d /b') do (move "%%i\%%f\*" "%%i"&&rd "%%i\%%f" /s /q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment