Move folders to parent level (Windows)

孤街浪徒 提交于 2019-12-26 23:31:50

问题


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



来源:https://stackoverflow.com/questions/48158375/move-folders-to-parent-level-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!