Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!marc From: marc@Apple.COM (Mark Dawson) Newsgroups: comp.sys.mac.programmer Subject: Re: How to tell if a volume is a floppy drive? Message-ID: <44022@apple.Apple.COM> Date: 16 Aug 90 13:39:41 GMT References: <1517@ntmtv.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 31 More experienced people will probably give better answers, but here's my try: In article <1517@ntmtv.UUCP> gauthier@ntmtv.UUCP (Jay Gauthier) writes: >Hi, another simple question that I can't find an answer to in IM. >How can you tell if a vRefNum refers to a floppy disk drive? You can't. You can make educated guesses. If the drive # is 1 or 2 it GENERALLY is a floppy drive, but a 4 or 9 could be too (especially if its a Daynaor Rapport external floppy drive). You can check what driver is running the drive ('.Sony' would tell you that the Sony floppy driver is running, though Rapport also uses this name to fool other callers into thinking its a Sony driver). >Also, how can you tell if it is an AppleShare volume? You again could see if the AppleShare driver owns the drive. There's probably other ways too... >The general >question is "How can I tell if an 'Eject' is a valid option?" > I don't know. I know you CAN eject AppleShare volumes; it justs removes their access from you (off the desktop). Mark -- --------------------------------- Mark Dawson Service Diagnostic Engineering AppleLink: Dawson.M Apple says what it says; I say what I say. We're different ---------------------------------