Author Topic: Application to document library?  (Read 3554 times)

djdube525

  • Guest
Application to document library?
« on: December 18, 2009, 03:44:27 PM »
I was wondering if there was a means/meachanism from either squeezecenter or some other application to create a log of all the ripped CD's recursively from a given starting directory?

Hopefully, that makes sense. Ultimately, I'm looking for an easy way to catalogue my library.

Thanks!

Dave

Offline bpape

  • Audio Neurotic
  • *****
  • Posts: 1554
  • Sensible Sound Solutions
    • Owner - Sensible Sound Solutions
Re: Application to document library?
« Reply #1 on: December 18, 2009, 04:39:56 PM »
Lemme see if I remember my DOS...

Starting at the music folder and assuming you have it folder/artist/album/songs:

dir /s *. > C:\MyMusicList.txt

That will look and list all directories and their subdirectories but ignore the files themselves.  It's more info than what you want but all the albums will be listed directly after the artists (and it's easy).  Just remember to do this when sitting in the base music folder at the DOS command line.

So, you'd have

c:\music folder\Sanatana
c:\music folder\Santata\Abraxis
c:\music folder\Santana\Supernatural
c:\music folder\Tubes
c:\music folder\Tubes\Completion Backward Principle
c:\music folder\Tubes\The Tubes

etc.

That text file can then be imported into Excel and have every line stripped of everything before the 2nd or 3rd \ to leave just the albums or the artis\album

Bryan
« Last Edit: December 18, 2009, 04:49:25 PM by bpape »
I am serious... and don't call me Shirley

djdube525

  • Guest
Re: Application to document library?
« Reply #2 on: December 19, 2009, 03:39:36 AM »
Awesome Brian!

Admittedly, I'm a little embarrased not to think of using DOS commands.  :duh

There's one small tweak that's needed in the command line. With just "/s" you end up with a listing for the current and parent directory, summary, etc... For instance:

 Directory of D:\My Files\FLAC\ABBA

11/30/2007  05:26 AM    <DIR>          .
11/30/2007  05:26 AM    <DIR>          ..
08/11/2008  04:58 PM    <DIR>          Number Ones
               0 File(s)              0 bytes

 Directory of D:\My Files\FLAC\ABBA\Number Ones

08/11/2008  04:58 PM    <DIR>          .
08/11/2008  04:58 PM    <DIR>          ..
               0 File(s)              0 bytes


Your suggestion got me googeling a bit and found if you add a "/b" to the command line, it rips out all the headings, file summaries and summary.

To recap, the command line would look like:

dir /s /b *. > <filename.txt>

Very simple and elegant solution Brian! Many thanks!!!

Dave