ディレクトリ内のファイルが親フォルダのみではなくなるまで、ファイルを親フォルダに移動する方法

ディレクトリ内のファイルが親フォルダのみではなくなるまで、ファイルを親フォルダに移動する方法

フォルダにたくさんの写真があります

C:\Users\Home\Documents\Folder1\Folder2\Folder3\Folder4

それは次のようになります:

Documents:
├───Stuff
├───Music
├───Text
├───Folder1
│   └───Folder2
│        └───Folder3
│            └───Folder4
│                 └───picture1.png
│                 └───picture2.png
│                 └───picturex.png

フォルダー 1 ~ 3 にはフォルダーしか含まれていないため、それらを削除してファイルを次の場所に移動します。

Documents:
├───Stuff
├───Music
├───Text
├───Folder4
│   └───picture1.png
│   └───picture2.png
│   └───picturex.png

これを複数のフォルダーにすばやく適用したいのですが、どうすれば実現できますか?

答え1

やり方は非常に簡単です:

cmd を開く: Win+ R>>cmd と入力>>Enter

次のコードを貼り付けます:

move %userprofile%\Documents\Folder1\Folder2\Folder3\Folder4 %userprofile%\Documents\
rd %userprofile%\Documents\Folder1 /s /q

仕事完了。

関連情報