Path: utzoo!attcan!uunet!hoptoad!tim From: tim@hoptoad.uucp (Tim Maroney) Newsgroups: comp.sys.mac.programmer Subject: Re: code to erase/format a mounted volume... Message-ID: <8917@hoptoad.uucp> Date: 5 Nov 89 13:42:04 GMT References: <57892@tiger.oxy.edu> <1679@ncrcce.StPaul.NCR.COM> Reply-To: tim@hoptoad.UUCP (Tim Maroney) Organization: Eclectic Software, San Francisco Lines: 19 In article <57892@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: > Ok, short and sweet: do you have code that will erase a mounted > volume? If you do, please send a copy to me at sonenbli@oxy.edu In article <1679@ncrcce.StPaul.NCR.COM> pasek@c10sd3.StPaul.NCR.COM (M. A. Pasek) writes: >Why would you want to do this, when the "Erase Disk" selection of the "Special" >menu will accomplish this for you ? Anyway, it sounds definitely dangerous, >and probably not "nice", either. The answer is: You use the Disk Initialization Package documented in Inside Mac, volume II, chapter 14. Note that drive numbers are not used very often, so be sure you understand them first. You can get the drive number associated with a volume from the ioVDrvInfo member returned from PBHGetVInfo. -- Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com "Superhero stories could best be described as entertainment that externalizes childhood power fantasies." -- Timothy Fay on rec.arts.comics