Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!haven!decuac!e2big.mko.dec.com!bacchus.pa.dec.com!decwrl!sdd.hp.com!samsung!munnari.oz.au!murdu!ucsvc.ucs.unimelb.edu.au!wehi!jon From: JON@wehi.dn.mu.oz (Jon Eaves) Newsgroups: aus.mac,comp.sys.mac.programmer Subject: Setting a Default Directory Message-ID: <11240@wehi.dn.mu.oz> Date: 11 Aug 90 16:27:42 GMT Organization: < Halls of Montezuma > Lines: 26 G'day People, Well, Wit's End is looming fast on the horizon. I have been trying a (seemingly) simple task and have been failing dismally. I want to set the default volume and directory using a 'STR ' resource containing the full pathname. I've read most of IM IV Ch 14, and IM II Ch 4 but they have provided no joy. Extracting the 'STR ' stuff was a gimmie, I have the Pascal format string stored in a Str255 waiting to be used. The string is of the format 'DriveName:FolderName' I have tried numerous calls to SetVol and PBHSetVol, none of which to do any good, but return noErr. What's the answer? I'm reasonably sure it's pretty trivial, but I have been unable to track down what I am doing wrong. On a similar vein, how can I use BootDrive to set the volume to that 'value'. Yours in much confusion. -------------------------------------------------------------------------------- Jon Eaves I'm in it for the glory of $cience. ACSnet ( jon@wehi.dn.mu.oz ) UUCP ( uunet!munnari!wehi.dn.mu.oz!jon ) Internet ( jon%wehi.dn.mu.oz@uunet.uu.net ) --------------------------------------------------------------------------------