Windows - Move many files in subfolders

Here is a nice little command to move all the files in the subfolders to the current directory. Works in a command line.

for /r %i in (*) do @move "%i" .

 

If you wish to run it so that you do not have to be in a certain directory, you can type out the paths:
for /r C:\path %i in (*) do @move "%i" "C:\path"