Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!bbn!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!jv0l+ From: jv0l+@andrew.cmu.edu (Justin Chris Vallon) Newsgroups: comp.sys.mac Subject: Re: boot path Message-ID: Date: 6 Apr 88 05:40:25 GMT Organization: Carnegie Mellon University Lines: 14 In-Reply-To: <406@lsrhs.UUCP> To get the volume name of the current startup disk (ie the disk on which the current System Folder is) in C, use the working directory reference number of the system folder contained in BootDrive ($210), and then GetVolInfo: ParamBlkRec paramBlock; paramBlock.ioNamePtr = startupVolName; paramBlock.ioVRefNum = *(int *)0x210; paramBlock.ioVolIndex = 0; PBGetVInfo(¶mBlock, 0); /* returns OsErr */ Note that since BootDrive is an HFS global, this code will fail under the 64K ROMs... but who cares about them anyway :-) If you want MFS, look at Inside Mac II-108, which tells you to GetVRefNum of SysMap which returns the VRN of the system startup volume. -Justin