View Full Version : Fastest way to move files to a folder and create the folder :XP
MannyL
06-18-2006, 09:13 PM
I'm Trying to organise my files I see I have many cd's that I ripped into .MP3 named as follows
cd?-??-??-trackname
I want to reorganize my files so for every cd?-??-??? there is a folder called cd? and in it is the files cd?-??-??-trackname
I know a simple batch script will do it but I can't figure out how to write it. Any suggestions?
What Exit?
06-18-2006, 09:15 PM
What Music ripping software do you use? The much maligned Windows Media Player 10 or 11 does this for me.
Jim
MannyL
06-18-2006, 09:18 PM
What Music ripping software do you use? The much maligned Windows Media Player 10 or 11 does this for me.
Jim
I forget exactly what I used it was either Music Match or another program but what happened is I ended up somehow moving all the files from every cd into one folder and now I'm trying to straighten out the mess
What Exit?
06-18-2006, 09:29 PM
I forget exactly what I used it was either Music Match or another program but what happened is I ended up somehow moving all the files from every cd into one folder and now I'm trying to straighten out the mess
Gotcha, try this shareware from PC world. It might do the trick, and there software is spy-ware safe from my experience.
IM Collector Music Edition
http://www.pcworld.com/downloads/file_description/0,fid,61842,00.asp#
MannyL
06-18-2006, 09:48 PM
That application looks like it may work if it accepts .zip format. The song files are mp3's plus the album image plus lyrics where I could find them
What Exit?
06-18-2006, 09:54 PM
That application looks like it may work if it accepts .zip format. The song files are mp3's plus the album image plus lyrics where I could find them
Good luck, I am sorry I cannot be off more use. WMP has spoiled me by doing the job for me.
MannyL
06-19-2006, 12:06 AM
Well that program did not work. I hacked together a little script below
mkdir cd22%1
cd cd22%1
dir ..\..\cd22%1-*.*
move ..\..\cd22%1-*.* .
cd ..
I can run it as follows C:\to Sort\Misc Music\Unorgainized which has files named
cd2203 through cd2439
example
doit 10 would
create C:\to Sort\Misc Music\Unorgainized\Cd10
then copy the contents of cd10 to the new direcory.
I know I can mahually run in 99 times each time incrasing the number by 1 then changing the the .cmd file to start over at 23 and manually doing 01 though 99 but I know there has to be a way to loop trhis but I can't figure out the syntax.
Any suggestions are appreciated
Mangetout
06-19-2006, 02:57 AM
I wrote a small piece of VB that will do something like this; my bird box webcam (see sig) software saved the pictures all in the same folder as [date]-[time]-[serial number].jpg - after a week or so of storing one photo per minute, 24 hours a day, it got so that Windows didn't like opening the folder at all - because it was trying to refresh thumbnails of tens of thousands of images.
My program created folders as required using the front part of the filename, then moved all of the relevant files into it, continuing until none were left unfiled. I don't have a copy here, but I can post the code tonight - if you have some way of running VB (for example. MS Access, or Visual Basic Express - which is available for free download), then it shouldn't be too hard to modify so that it creates a folder name based on the position of the first dash character.
Eliahna
06-19-2006, 03:42 AM
Just FYI, iTunes organises your MP3s into iTunes Music/Artist/Album/track number track title.mp3 if you choose "Keep iTunes Music Folder Organised" and "Copy Files to iTunes Music folder when added to library" under preferences. I realise not everyone likes to use iTunes.
LSLGuy
06-19-2006, 07:22 AM
The loop construct you want is something like
C:\...> FOR /L %x IN (0,99,1) doit %x
type FOR /? for more info
Note that if you embed that statement in a batch file it needs to be reworked as
FOR /L %%x in (0,99,1) doit %%x
Ximenean
06-19-2006, 08:36 AM
Make a batch file called something like MDandMove.bat, containing this:
set filename=%1
set dest=%filename:~0,3%
md %dest%
move %filename% %dest%
Then call it with the FOR loop
for %i in (cd?-*) do call MDandMove.bat %i
MannyL
06-20-2006, 09:44 PM
Thanks LSLGuy and Usram
duffer
06-20-2006, 10:11 PM
I'll second the new WMP. If you're familiar with previous versions, this should be a snap to figure out.
Depending on your patience level and how many files there are, why not just make folders for each band, and sub-folders for each album? I realize Windows gets a knock from certain people, but it's so easy to use for these kinds of tasks, I don't see the use for writing a script.
Right-click the desktop and make new folders for how ever many bands you have. Or genres and sub-folder from there. Open the directory with the files and drag-and-drop. Then organize the folders into wahtever directory you want.
Again, maybe too much a PITA for you, but simple nonetheless.
MannyL
06-20-2006, 11:04 PM
Well these are karaoke files. They are .zip's consisting of a .mp3 and a .cdg which is sound and graphic so Windows Media Player won't work on these. I'm trying to put them back in album order
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.