-2

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?

GrumpyCrouton
  • 8,486
  • 7
  • 32
  • 71
The_Hegemon
  • 17
  • 1
  • 3
  • 2
    `For /d %A in ("C:\Users\User\Desktop\David\Documents\Assorted\*") do move "%A" "%A\..\..\%~nxA"` See `for /?` and http://stackoverflow.com/questions/31820569/trouble-with-renaming-folders-and-sub-folders-using-batch – ACatInLove Jan 08 '18 at 22:26

1 Answers1

-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

maio290
  • 6,440
  • 1
  • 21
  • 38