Discussion
I'm fairly sure this isn't possible, but when in doubt, ask on PH 
I have a USB stick full of music. Each folder is the artist, each artist has folder(s) for albums and then tracks.
What I want to do is move all the tracks directly under the artist.
My MS command line is reasonably good, but am not sure this is possible. Any ideas?
Or are there utilities that can do this?

I have a USB stick full of music. Each folder is the artist, each artist has folder(s) for albums and then tracks.
What I want to do is move all the tracks directly under the artist.
My MS command line is reasonably good, but am not sure this is possible. Any ideas?
Or are there utilities that can do this?
alock said:
Powershell would be easier and it's built into all modern versions of Windows. Do you have programming experience to develop a few concepts, or are you expecting a 100% solution to be provided?
I might have a dip into powershell a bit (I have programming experience but not recent - hence my ability with DOS...and realised recently that my Unix isn't totally forgotten. Will have to wheel out the Assembler and Fortran77 again soon
). But....JimbobVFR said:
Do you use MP3tag at all. That can sort files based on tags any way you like.
...will take a look at this first as yes, I do use MP3Tag 
Thanks all.
If MP3tag doesn't work and you know *nix, just use the Linux on Windows subsystem for all your BASH needs https://www.howtogeek.com/249966/how-to-install-an...
Murph7355 said:
I'd need to go into every sub-folder and copy them to their root...no?
There are 500 root folders and 2,900+ sub-folders
If they're all mp3s just do a windows search "*. Mp3" on the root drive and copy and paste the results of the search into a new folder... It might take a whole but it'll be fine. Don't worry. There are 500 root folders and 2,900+ sub-folders

FredClogs said:
If they're all mp3s just do a windows search "*. Mp3" on the root drive and copy and paste the results of the search into a new folder... It might take a whole but it'll be fine. Don't worry.
I want artists to sit under the artist sub-directories of the root though (unfortunately
).Murph7355 said:
FredClogs said:
If they're all mp3s just do a windows search "*. Mp3" on the root drive and copy and paste the results of the search into a new folder... It might take a whole but it'll be fine. Don't worry.
I want artists to sit under the artist sub-directories of the root though (unfortunately
).When I search my top level "Music" folder for *.mp3 I can arrange them by Album, artist, title as well as folder, rating etc... etc...
Ye olde DOS program XTREE would allow you to mark files to manipulate or identify files with same extension. Problem was that it would not support long file names. ZTREE fixed that and worked under a DOS window in most Windows versions. The problem is that the last versions were fully functioning, but time limited trial versions. Of course there's always the old DOS move/copy commands with a wildcard,such as copy f*.* or move f*.* where all files starting with f are copied ( SEE https://web.csulb.edu/~murdock/copy.html).
Use https://www.tinytask.net/
Let it work over night
Perform a test run first with several test folders
Let it work over night
Perform a test run first with several test folders
HappyMidget said:
Some powershell like the following might work (not tested)
$dir = "C:\Users\user\OneDrive\Music"
cd $dir
$artists = Get-ChildItem -Directory
foreach ($artist in $artists){
Get-ChildItem -Filter *.mp3 -Recurse -File | Move-Item -Destination $artist
}
Only just had chance to play with this...thank you for posting.$dir = "C:\Users\user\OneDrive\Music"
cd $dir
$artists = Get-ChildItem -Directory
foreach ($artist in $artists){
Get-ChildItem -Filter *.mp3 -Recurse -File | Move-Item -Destination $artist
}
It needed a couple of tweaks to achieve what I wanted, but it works nicely as follows:
$dir = "C:\Users\<<root path of files>>"
cd $dir
$artists = Get-ChildItem -Directory
foreach ($artist in $artists){
Get-ChildItem -Path $artist -Filter *.mp3 -Recurse -File | Move-Item -Destination $artist
\* The "path" bit was important here as it brought everything from all directories in and then recursively moved the lot from one artist to the next, leaving all files in the last artist directory. Wasted a bit of time messing with cd commands here until I found path

Get-ChildItem -Path $artist -Directory | Remove-Item
\* This cleared up the now empty sub-directories
}
I like Powershell - old DOS experience came in handy (echo; pause; etc) and it seems to have decent Unixy bits in too.
Thanks again all (and especially HappyMidget).
Murph7355 said:
Only just had chance to play with this...thank you for posting.
It needed a couple of tweaks to achieve what I wanted, but it works nicely as follows:
$dir = "C:\Users\<<root path of files>>"
cd $dir
$artists = Get-ChildItem -Directory
foreach ($artist in $artists){
Get-ChildItem -Path $artist -Filter *.mp3 -Recurse -File | Move-Item -Destination $artist
\* The "path" bit was important here as it brought everything from all directories in and then recursively moved the lot from one artist to the next, leaving all files in the last artist directory. Wasted a bit of time messing with cd commands here until I found path
Get-ChildItem -Path $artist -Directory | Remove-Item
\* This cleared up the now empty sub-directories
}
I like Powershell - old DOS experience came in handy (echo; pause; etc) and it seems to have decent Unixy bits in too.
Thanks again all (and especially HappyMidget).
Good call, forgot that the script hadn't changed directories from the base dir. Glad it helpedIt needed a couple of tweaks to achieve what I wanted, but it works nicely as follows:
$dir = "C:\Users\<<root path of files>>"
cd $dir
$artists = Get-ChildItem -Directory
foreach ($artist in $artists){
Get-ChildItem -Path $artist -Filter *.mp3 -Recurse -File | Move-Item -Destination $artist
\* The "path" bit was important here as it brought everything from all directories in and then recursively moved the lot from one artist to the next, leaving all files in the last artist directory. Wasted a bit of time messing with cd commands here until I found path

Get-ChildItem -Path $artist -Directory | Remove-Item
\* This cleared up the now empty sub-directories
}
I like Powershell - old DOS experience came in handy (echo; pause; etc) and it seems to have decent Unixy bits in too.
Thanks again all (and especially HappyMidget).
Does anyone know of way of taking a MP3 RSS feed and using this data to rename filenames and add ID3 tags to the MP3 file that's already been downloaded ?
e.g.
https://rss.hosting.thisisdax.com/ed87f36a-7b44-4e...
e.g.
https://rss.hosting.thisisdax.com/ed87f36a-7b44-4e...
[quote=Who me ?]Ye olde DOS program XTREE would allow you to mark files to manipulate or identify files with same extension. Problem was that it would not support long file names. ZTREE fixed that and worked under a DOS window in most Windows versions. The problem is that the last versions were fully functioning, but time limited trial versions. Of course there's always the old DOS move/copy commands with a wildcard,such as copy f*.* or move f*.* where all files starting with f are copied ( SEE https://web.csulb.edu/~murdock/copy.html).
[/quote]
XTREE now there is a blast from the past. Although XTREE GOLD was my favourite file manipulation programme, as it could do a few more tricks than the ordinary version.
Rapidfile by Ashton Tate was my favourite programme for working with Dbase3 and .csv files, the macros you could create were so quick and a lot of the abilities of it still haven't been replicated in as simple a way in any programme since.
[/quote]
XTREE now there is a blast from the past. Although XTREE GOLD was my favourite file manipulation programme, as it could do a few more tricks than the ordinary version.
Rapidfile by Ashton Tate was my favourite programme for working with Dbase3 and .csv files, the macros you could create were so quick and a lot of the abilities of it still haven't been replicated in as simple a way in any programme since.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


