move all files in a folder and all it's subfol

2019-07-03 15:27发布

I have a folder c:\downloads\ffme and inside it there are loads of subfolders with various amounts of files in each of them.

I want to consolidate all those individual files into one big folder, removing them from their subfolders on the way. I want to end up with a folder with loads of files in it, but no subfolders. How can I do this?

thanks

2条回答
聊天终结者
2楼-- · 2019-07-03 15:41

The easiest way would be w/o a cmd... just open the folder in Windows Explorer and search for *.*, then select everything except the subfolders and drag/drop or cut/paste to the desired location.

查看更多
霸刀☆藐视天下
3楼-- · 2019-07-03 15:51

Use standard file recursion but rather than maintaining a directory structure, move the final file, unless of course the name already exists, then you would need to allow for renaming so that the file is maybe prepended with a directory name to maintain the unique filenames.

Have you done any form of recursive code?

查看更多
登录 后发表回答