Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!rutgers!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!ima!think!ephraim From: ephraim@think.COM (Ephraim Vishniac) Newsgroups: comp.sys.mac.hypercard Subject: Re: Getting information from the desktop Message-ID: <30733@think.UUCP> Date: 9 Nov 88 12:21:32 GMT References: <59820SAS102@PSUVM> Sender: news@think.UUCP Reply-To: ephraim@vidar.think.com.UUCP (Ephraim Vishniac) Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 23 In article <59820SAS102@PSUVM> SAS102@PSUVM.BITNET (Steven A. Schrader) writes: >Does anyone out there know how to get information such as what disk >is in which drive, etc. > Steven A. Schrader(SAS102@PSUVM, SAS102@PSUVM.BITNET > SAS@PSUARCH, SAS@PSUARCH.BITNET) This information (and lots of other good stuff) is recorded in the Volume Control Block (VCB). See the volume information calls among the file manager routines in IM II (old versions) or IM IV (HFS versions). If you're writing in assembly language, you may find it easier just to walk the VCB list directly. Apple will frown at you, of course, since looking directly at low-memory stuff is discouraged. Ephraim Vishniac ephraim@think.com Thinking Machines Corporation / 245 First Street / Cambridge, MA 02142-1214 On two occasions I have been asked, "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?"