Batch file to transfer mp3s from usb drive
I am trying to create a batch file (unless anybody can suggest a better way), that will place all the mp3 files on a usb drive into a directory on my C drive. I will store all the files on the usb drive as /bandName/albumName/songs.mp3, and will want to put them into a directory such as: C:/Music/Albums/
To give you an idea, this is what I have got so far that I have been playing around with:
echo Processing . . .
for /f "delims=" %%I in ('dir /s /b /a:D "%src%\*"') do (
copy "%%~I" "%dst%\%%~nxI"
echo The process is complete.
It just copies everything though into the one source folder, and doesn't keep any sort of directory structure. I am thinking it may need some nested for loops to go through the directories, but that is getting beyond my knowledge. Also I am guessing I will be able to just swap the C with the drive name for the USB drive, and if it is connected will always have the same letter and should work?
Any help, suggestions or ideas would be much appreciated.