Hi, On Tue, Dec 23, 2014 at 5:56 PM, Mercury Thirteen <mercury0x0...@gmail.com> wrote: > > In keeping with Tom's earlier suggestion, I give you Drives, the disk info > tool - now in standalone form! :) > > It's still a bit buggy - I have to sort out an issue with repeating drive > labels and a couple other odds and ends - but 90% of the program is usable > and functional. Just type "drives" and see a brief summary of the drives > available in the current environment and the letters assigned to them. > > http://www.mercurycoding.com/drives/drives.bas > http://www.mercurycoding.com/drives/drives.exe > > Feedback is welcome!
Right now, I'm using my laptop. I do have a RUFUS USB stick lying around if you want me to test under raw FreeDOS, but I'm not doing anything unusual with drives. In other words, my testing is limited in usefulness. But I have been playing with a (heavily modified) QEMU image of my own making in the last week or so. ==================================== Drives Drive information tool v1.0 2007 - 2015 by Mercury0x000d [mercury0x0...@no.spam.no.spam.gmail.spam.sux.] Detected drives: 4 type label additional data (if applicable) a: floppy drive NO NAME 3.5 inch, 1440 KB c: hard drive NO NAME d: hard drive QEMU VVFAT g: not detected ==================================== A:\ is a (very slightly) modified METADOS floppy .img. C:\ is a new (100 MB, qcow2) hard drive .img that I'm using to test some random stuff. D:\ is just a virtual drive that lets me read/write files (when rarely needed) to/from host OS. ("-drive file=fat:rw:/rugxulo/tmp/rugxdos") G:\ is my RAM disk (formerly using Jack's RDISK, now temporarily using SHSURDRV only because I might rarely unload it instead of rebooting). The labels for them are (in order): META_DOS, (none), QEMU VVFAT, and SCRATCH. Just for comparison, there are two other (obvious) programs I know of to detect drives. 1). http://ericauer.cosmodata.virtuaserver.com.br/soft/specials/volinfxl-disk-usage-info.zip 2). http://www.bttr-software.de/forum/board_entry.php?id=6721#p6723 http://www.delorie.com/bin/cvsweb.cgi/djgpp/src/libc/compat/mntent/mntent.c?rev=1.13 The former is written in Turbo Pascal (with source, natch). Though it ignores drives with no label or "MS-RAMDRIVE" (and apparently also ignores floppy). The latter is just a discussion we had a few years back where I mentioned DJGPP's mntent.c (although you're presumably still using PowerBASIC here, and I have no idea how much raw DJGPP support FreeBASIC has, though it does have a fair bit since it's obviously based upon it, so I don't know if using FBC instead is ultra transparent here with its bindings). mntent.c -DTEST (from djlsr203.zip since I only have an old GCC 2.95.3 / 2.03p2 installed, for now) doesn't list sizes (presumably see df.exe from /v2gnu/fil41b.zip or whatever) but does list label, type (e.g. fd, hd, ram), and number (00,02,03,06) plus letter (a,c,d,g). Either way, they should give you some ideas. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel