Copying files to a thumb drive

I need to copy thousands of .mp3 files from my laptop to a thumb drive, but I need to strip out all the folders. Right now they are organized “music/artist/album/song.mp3” but I need to copy close to 6k of them to the root folder of the thumb drive. Is there an easy way to do that?

https://superuser.com/questions/20038/xcopy-files-into-single-directory
.

I’d probably use python for this personally. A variation of this would work.

https://stackoverflow.com/questions/8428954/move-child-folder-contents-to-parent-folder-in-python

If you want to use windows commands, one of these ought to help:
https://superuser.com/questions/1146686/move-all-files-within-subfolders-to-parent-folder
https://superuser.com/questions/999922/move-all-files-from-multiple-subfolders-into-the-parent-folder

Thanks. So for me I would get into the cmd screen and use

for /r c:users/public/public music %f in (*.mp3) do @copy “%f” F:\
??

I don’t know if I have the forward/back slashes right.

Thanks. So for me I would get into the cmd screen and use

for /r c:users/public/public music %f in (*.mp3) do @copy “%f” F:\
??

I don’t know if I have the forward/back slashes right.

Play with it. (That’s what she said)

Easiest way is just do a . search from Explorer from the root folder of all the files. Then select all the files (sorting out the folders) and drag to your thumb drive.