Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
blahz
Dec 18, 2004


I have what's hopefully an easy request. Essentially I'd be interested in a program that dumps the directory listing of a dvd/cd that's in my dvd drive to something that I can use in excel or a text file. Although I'm not sure how well the information could be organized in excel.

To explain it a bit better, I was wanting to catalogue all my DVD's. Writing all the tv shows, artists, and files that are on the surface of the disc is a pain in the rear end and unsightly. I'd rather just assign it a number, such as DVD 32, then open up a catalogue on my computer to find out what's on it. Also I'd be able to search through the catalogue to find what I want, rather than sticking in a bunch of DVD's to find out what I want.

Assuming it's a text file, It would output the txt file to be "DVD/CD ##.txt", depending on whether it's a CD or DVD, and a number of my choosing I guess. Then it would scan the contents and list them in some sort of format.

IE:
DVD/CD ## SUMMARY:
xx files total/yy MB total

[MP3S]
-somerandomfile.txt 1kb
-[ARTIST]
--files1.mp3 3mb
--files2.mp3 4mb
-[DUCKS]
--ilikeducks.jpg 102kb

The formatting isn't very concrete, but it's an idea. As long as it's legible.

blahz fucked around with this message at 12:47 on Apr 20, 2007

Adbot
ADBOT LOVES YOU

blahz
Dec 18, 2004


Revelations posted:

I believe I have this filled based on your description.

Try http://www.tinyappz.com/wiki/ReadDrive

Let me know if you'd like changes or a real user interface. It could be done, but I was going for something light here.

Edit: Also, I only tested it on a few dozen files totaling roughly 80MB. It took about 30 seconds to catalog that, so I'm sure it's wasting time somewhere. If I get more time soon I'll try and clean it up.

More Edit: On that note, I'm pretty sure it's being caused at least partially by my file size retrieving method, which is pretty hacked together I think. Anybody got pointers on doing that better/faster?

Edit again: Nevermind, I'd an idiot. I've got it to where 7950 files takes about 2 minutes now.

Oh wow, I forgot about this thread due to finals, so sorry for the late reply. I appreciate you making the program, but for some reason the download link doesn't work :(. Could you possibly reupload it? Thanks in advance.

blahz
Dec 18, 2004


Revelations posted:

You're awesome, thanks. Now I can stroke my ego when people download my code!

Hey Relevations, I messed around with the program and I just had one problem. It doesn't seem to be doing any sort of linebreaking, so the output is kind of scrunched together. Besides that, the formatting seems perfect and it works great! Thanks :)

blahz
Dec 18, 2004


Revelations posted:

This is kinda interesting. I'm using the \n character for linebreaks, which I believe is translated differently with different text editors/OSes. I thought that using this character would sort it automatically... I wonder if this is because I compiled it on a Linux box?

For kicks, can you try importing one of the output files into Word or OpenOffice where it will allow you to select the linebreak character? I just imported one I created on Windows XP and used the LF character only as the linebreak and it worked.

As for a permanent fix, anybody have a better suggestion than force feeding it CRLF? This results in double spacing in some editors.

Re-Edit: I got un-lazy and just did a check for Windows, and outputs accordingly. Hopefully that fixes it for you. Also Notepad still sucks and even with CRLF in Windows still shows long lines. Wordpad seems to suck significantly less, however.

Sorry for the late reply, and yeah it seems to work fine in Word and Wordpad. Strange that it wouldn't work well in Notepad. Oh well, it works perfectly though, and just what I was looking for. Thanks a bunch!

  • Locked thread