Checking for media in drives

Braintree Athletics rarickj at btathletics.com
Mon Dec 23 19:43:01 EST 2002


Putting  "the drives" or "the volumes" will give you a list of available drives
with media in MacOS.  In win95, 98 and XP you get a list of all mechanically
attached equipment.  If you then do a "If there is a:/mydisk/myfolder then ..."
line of code you get some whirling and clicking in 95 and 98 - but no error
message from an empty floppy drive.  In XP if you check for a folder or file in
a drive that does not contain media - you get a system error message from XP.

Is there any way in XP (and 95/98) to check to see if there is media in a drive
without getting an error message?

Thanks for your help!

Jack Rarick
Braintree Athletic Systems




More information about the metacard mailing list