View Full Version : App to do my dirty work for me?
mhelliwell
09-23-2006, 11:49
This is a long shot...
I'm wondering if there is an app that will go through my AUDIO folder (this is the same as MUSIC...) and search and destroy the Sub-folders, whilst retrieving the files. For example, it would find my "Finger Eleven" Folder in AUDIO. My folder would then have
(F) = Folder
(F)Finger Eleven
(F)The Greyest of Blue Skies
(F)Unknown Album
and kill those folders, while getting the files back in the parent folder, so when I press "Finger Eleven" I get all my songs w/o the complications of knowing what album a song is from.
I hope I made sense! I just don't want to do this all myself as they are ALL (~ 15GB) ordered w. their albums but I don't want that on the X5.
________
LOVE FORUM (http://www.love-help.org/)
Zeus's Uncle
09-23-2006, 12:11
Media Monkey would probably do the trick for you, gotta have it scan the X5 to build it's library, probably want to use the setting to determine album, artist and title fields based on folder/filenames instead of tags (unless you also have organized your tags). Then you'll want to do the autosort to restructure it.
Alternatively, you can use MM as your synchronization software. Have it scan your main collection into its library, mark the music you want to sync (probably pretty easy to do since you only need to mark the root folder for 15 gigs on a 20/30/60 device). Then you can set up the synchronization scheme however you like it, and it will be easy to change back too. Delete the music off your X5 and sync.
My sync structure is: AUDIO\<Genre>\<Album Artist>\<Album>\<Track#> <Title>
You probably want: AUDIO\<Album Artist>\<Title>
or something similar.
Or you could write a small script to move every file up one dir, and then delete all empty directories.
mhelliwell
09-23-2006, 12:35
Or you could write a small script to move every file up one dir, and then delete all empty directories.
I am afraid I am too dumb to do this. :( What is, I never learned that sort of thing. Does anyone kow how to do this and is feeling REALLY, REALLY nice? (I would love you forever if that counts). Or perhaps there is a way to do this in a tuorial somewhere? I don't know, I'll Google it, but I'm really not that good at finding obsure things in Google.
I would have used MediaMonkey but "technically" this is my brother's computer (and his music files - shh, don't tell) and he would just get pissed off.
________
Digital Vaporizer (http://digitalvaporizers.info)
mhelliwell
09-24-2006, 10:26
Okay, I'm just going to try MM, but anyone can feel free to try and write that script for me [biggrin]
________
Hot Box Vaporizers (http://hotboxvaporizers.com)
Zeus's Uncle
09-24-2006, 11:56
You're on Windows XP? Football is just starting, so I won't be totally focused, but give me an hour or so and I'll whip something up for you.
Zeus's Uncle
09-24-2006, 12:08
Just to be clear, before I get to far along in the coding, here's what I've got for your requirements.
1. Identify all files existing in the filetree starting at some given root. (In this case the AUDIO folder).
2. Move all those files up one level in the file tree.
3. Delete any empty folders (I might skip this part just for the sake of time).
Zeus's Uncle
09-24-2006, 12:27
dang, you're offline now.
mhelliwell
09-24-2006, 12:50
I'm here now! I hope you know how much I appreciate this... I definetely owe you one! Anyways.. you are right on for what the script could do, that would be so great, even if it didn't delete all empty folders maybe I could find another script to do so, or do it myself. [Gives internet hug]
________
Gl500 (http://www.cyclechaos.com/wiki/Honda_GL500)
Zeus's Uncle
09-24-2006, 12:55
Question: Are there any file extensions you want to exclude from the move? For instance, I need to exclude the script's file extension (moveup.cmd) and also need to exclude the extension for my temporary storage (*.temp). That way these files will not be affected.
Zeus's Uncle
09-24-2006, 13:04
sweet, i just threw together a proof of concept, it looks like my approach is going to work. I'll clean it up and make it proper now, and then run a few tests before posting.
mhelliwell
09-24-2006, 13:05
I'm tihnking not, at least not in the AUDIO folder, it's all MP3's and some
M4a's that still need conversion in there.
________
Expert Insurance (http://xpertinsurance.com/)
afruff23
09-24-2006, 13:14
ID3TagIt 3 can do this using the "organize" function from the file menu. This only works for mp3's though and requires proper tags. I'm sure there's other programs that can do this with M4a files.
http://www.id3-tagit.de/english/download.htm
Zeus's Uncle
09-24-2006, 13:21
Ok, if you find some filetypes you don't want moved, just let me know. I'm getting close to making the code proper for my conventions and putting in environment checks and all that stuff. This script will move every filetype except for *.temp and *.cmd up one directory in the entire subtree including the directory it is run in. So if you have any files in AUDIO, they'll be popped up to the root of the drive, but that should be easy enough to fix. I haven't done the remove empty folders yet, but I'll throw that in at the end, should be easy enough.
Zeus's Uncle
09-24-2006, 13:42
Ok, another question. Would you like to receive confirmation messages if there is an existing file in the target location, or would you rather have the file be automattically overwritten? We are not doing any file renaming, so this would happen in the case where you have two albums that have the same filename inside of them. For instance, a standard album and a compilation album have the same song at the same track number (if your naming scheme is "Track# Title.mp3). I'll create the code so it can be easily modified to switch between the two behaviors, but make the default whatever you want.
mhelliwell
09-24-2006, 13:44
But what about FIRMWARE, PICTURE, etc.? will they be pushed up? Because that could cause problems I think...
________
LESBIAN SCISSORING (http://www.fucktube.com/categories/741/scissoring/videos/1)
mhelliwell
09-24-2006, 13:46
Default can be Confirmation if that's okay.
________
Colorado dispensary (http://colorado.dispensaries.org/)
Zeus's Uncle
09-24-2006, 13:50
Folders will not move, the script works based on what directory is in. So put it inside of your AUDIO folder and then double click it. It won't even know folders that are siblings in the tree.
Zeus's Uncle
09-24-2006, 14:05
Ok, I'm done and I've run a few unit tests. I'm going to build a a big tree and include some interesting file & folder names to run a final E2E test. I put this together quickly, so I'm guessing there are probalby a couple of bugs in there, as well as any bugs in my external dependencies (windows command line operations).
mhelliwell
09-24-2006, 14:38
I love you man.
________
Top penny stocks (http://pennystockpicks.net/)
Zeus's Uncle
09-24-2006, 14:41
This script will work on Windows NT machines (NT, 2000, XP, 2003). Its purpose is to move every file in the directory tree up one level from the file's current location. It will affect all files in the directory in which it is run, as well as files in any subdirectories (excluding any files with a *.cmd or *.temp extension). After the move operations are complete it will remove and empty folders that it created, but will not remove any empty folders that existed before the script was run. By default, it will prompt before overwriting a file. To change the script to automatically overwrite any files without receiving prior confirmation from the user, comment out line 47 and uncomment line 49. The script has been tested using multiple nested folders, ampersands, apostrophes and extended characters in both file & folder names. This should do what you need, I cut the filesize in half by pulling out the comments.
To install and run, save the file to your AUDIO folder and rename it to moveup.lite.cmd (change the txt to cmd). Then just double click it.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.