coderJeff's Home Page and stuff or whatever
Home | FreeBASIC | About

cddir - a cdrom query tool in freebasic (windows)

cddir - ver 2015年05月28日 - A command line utility (for windows) to read cdrom table of contents and query freedb for discographies.

Download

Source code: cddir-2015年05月28日.zip 23 K

Running

For win7, run 'cddir'
For winXP (or older?) run 'cddir_xp'. Requiers an ASPI layer to be installed.
Either way, some files (named 'discid#.discid) get saved in the current directory. If you want files saved somewhere else, use 'cddir -o d:/path' or 'cddir_xp -o d:/path'

Sample Output

Here's a sample session:

Scanning for devices...
\\.\D: D:\ CD-ROM drive (0x5)
Found 1 device(s)
16 1 00:02:00
16 2 02:52:71
16 3 06:37:67
16 4 09:26:45
16 5 13:07:12
16 6 16:46:33
16 7 21:16:51
16 AA 24:43:72
DISCID = 5d05c907
cddb query 5d05c907 7 150 12971 29842 42495 59037 75483 95751 1483
Connecting to server ... 
Local host is PC (192.168.1.100)
Connecting to freedb.freedb.org (195.214.216.38:8880)
Connected
SEND: cddb hello fbuser localhost FreeBASIC-cddir 1.0
SEND: proto 5
Response: 201
Connected. OK.
SEND: cddb query 5d05c907 7 150 12971 29842 42495 59037 75483 95751 1483
Result = 1
Found 1
rock 5d05c907
SEND: cddb read rock 5d05c907
Tracks: 7
1 Time To Win
2 Whoa Is Me
3 Your Man
4 Rich Girls
5 Miracle Mile
6 Back Of My Hand
7 Parade Music
Disconnecting
SEND: quit

Copyright © 2005-2022 - Jeff Marshall

AltStyle によって変換されたページ (->オリジナル) /