To move all files from subfolders to the main folder in Windows using command prompt (cmd), you can use the following command:
1. Open the command prompt by searching for "cmd" in the Windows search bar and selecting the Command Prompt app.
2. Navigate to the main folder where you want to move all the files using the "cd" command. For example:
```
cd C:\path\to\main\folder
```
3. Once you are in the main folder, run the following command to move all files from subfolders to the main folder:
```
for /r %i in (*) do move "%i" .
```
This command will recursively search for all files in the subfolders and move them to the main folder you are currently in.
Please note that this command will only move the files and not the subfolders themselves.
move all files from subfolders to main folder in windows using cmd
1 answer