home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
- Subject: Re: Setting Default Directory
- Message-ID: <1993Jan6.145800.29027@kth.se>
- Sender: usenet@kth.se (Usenet)
- Nntp-Posting-Host: dront.nada.kth.se
- Organization: Royal Institute of Technology, Stockholm, Sweden
- References: <1iejtiINN8no@rave.larc.nasa.gov>
- Date: Wed, 6 Jan 1993 14:58:00 GMT
- Lines: 25
-
- In <1iejtiINN8no@rave.larc.nasa.gov> wjb@cscsun2.larc.nasa.gov (William J. Bene) writes:
-
- >Given the following FSSpec record:
-
- >How can I set the default directory to FSSpec.name? In other words, I have a
-
- It's a bad idea.
-
- Anyway, get the dirID of the directory, using PBGetCatInfo,
- and then call HSetVol. Leaving HSetVol is dangerous. Try:
-
- HGetVol ( old )
- HSetVol ( new )
- OpenStuff ( )
- HSetVol ( old )
-
- Then you can of course use the opened stuff.
-
- Cheers,
-
- / h+
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- Cookie Jar: Vanilla Yoghurt with Crushed Oreos.
-