Move folders to parent level (Windows)

2019-09-21 10:24发布

问题:

My file tree looks like this:

  1. Parent folder
    • Subfolder
      • Subsubfolder
    • Subfolder
      • Subsubfolder
    • Subfolder
      • Subsubfolder

I'd like to move all subsubfolders to the parent folder without changing the structure of the subsubfolders. How do I do this?

回答1:

Create a move.bat in the parent folder and run this:

FOR /R "." %%F IN (.) DO (
move "%%F" ".")

see https://stackoverflow.com/a/33276986/4934937