Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!midway!midway.uchicago.edu!francis From: francis@zaphod.uchicago.edu Newsgroups: comp.sys.mac.hypercard Subject: Re: How can I have an HC stack check if it's running from a hard disk? Message-ID: Date: 16 Apr 91 00:06:44 GMT References: <50679@nigel.ee.udel.edu> Sender: news@midway.uchicago.edu (NewsMistress) Reply-To: johnston@oscar.ccm.udel.edu's message of 14 Apr 91 07: 00:57 GMT Organization: Mathematics Department, University of Chicago Lines: 22 In article <50679@nigel.ee.udel.edu> johnston@oscar.ccm.udel.edu (Bill Johnston) writes: >CurrAppPath returns the full path name of the currently running HyperCard. >(For example, "HD40:HyperStuff:HyperCard".) Strip away the stuff after the >first colon and put the rest into volumeName. Put SCSINameToID(volumeName) >into "temp": if volumeName isn't a SCSI drive, temp will contain "volumeName >is not a SCSI drive" and you'll know that you are working from a floppy. Of course, there are SCSI floppies and non-SCSI HDs out there... This was a huge discussion on c.s.m.programmer last Fall; conclusion seemed to be that you can't distinguish hard drive vs. floppy: the best you can do is check for functionality. (i.e., if it ejects, it's a floppy, a CD, or a removable hard disk; check for size to be sure). -- /============================================================================\ | Francis Stracke | My opinions are my own. I don't steal them.| | Department of Mathematics |=============================================| | University of Chicago | Should five percent appear too small, | | francis@zaphod.uchicago.edu | Be thankful I don't take it all. "Taxman" | \============================================================================/