Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1.chuqui 4/7/84; site apple.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!apple!lsr From: lsr@apple.UUCP (Larry Rosenstein) Newsgroups: net.micro.mac Subject: Re: how to rename a volume with a toolbox call? Message-ID: <9555@apple.UUCP> Date: Mon, 29-Jul-85 19:38:43 EDT Article-I.D.: apple.9555 Posted: Mon Jul 29 19:38:43 1985 Date-Received: Wed, 31-Jul-85 23:30:15 EDT References: <6531@boring.UUCP> Reply-To: lsr@apple.UUCP (Larry Rosenstein) Organization: Advanced Development Group, Apple Computer Lines: 14 In article <6531@boring.UUCP> guido@mcvax.UUCP (Guido van Rossum) writes: >Can anyone explain me how I can rename a Volume (= disk) using some >toolbox call from within an application I'm writing (in C)? > >Inside Macintosh suggests that this is possible using Rename or PBRename, >and I've tried the first, but it keeps complaining about "file not found" >(error 43). I haven't tried this personally, but I believe that the trick is to specify the old/new volume name with a colon; eg., 'quux:' rather than 'quux'. (This is how the system differenciates between renaming a file and renaming a volume.) You can also specify the source volume by refnum, rather than by name.