I have a folder (let's call it A) with lots of subfolders B, C, D, E, which then again have subfolders B1, B2, B3, ... C1, C2, C3 ...
How can I using cmd move all files from all subfolders into the "root" folder A?
|
I have a folder (let's call it A) with lots of subfolders B, C, D, E, which then again have subfolders B1, B2, B3, ... C1, C2, C3 ... How can I using cmd move all files from all subfolders into the "root" folder A? |
|||||
|
From a Command Prompt:
If you need to cleanup the empty folders afterward:
Now, if you have any filename clashes, you're on your own. You can add the Also, if you want to use this in a batch file, change all the |
|||||
|
|
|
Install Cygwin (or another Unix environment for Windows) and run the following:
|
|||||||||||||
|
|
Create a folder and copy all the other folders into it, then right click that folder and select Search. In the search box enter This will list all the files and folders. Select all the files you want in your root directory and cut them. Navigate to your root directory and paste all the files there. |
|||||
|