home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!gatech!concert!duke!news.duke.edu!phy.duke.edu!mur
- From: mur@phy.duke.edu (Daniel Murphy)
- Newsgroups: comp.sys.mac.programmer
- Subject: Changing directories, volumes
- Keywords: directories, volumes, hfs
- Message-ID: <8214@news.duke.edu>
- Date: 22 Dec 92 20:27:17 GMT
- Sender: news@news.duke.edu
- Lines: 17
- Nntp-Posting-Host: physics.phy.duke.edu
-
-
- I wrote an MPW shell tool which reads from a file and writes to new file.
- I want to be able to set the output directory to be different from the input
- directory using a flag followed by either a partial or full pathname for the
- destination directory. This works only intermittently using HGetVol and
- HSetVol, and when it doesn't work it causes a system crash. The system doesn't
- crash if I use GetVol and SetVol, but it always places the output file in the
- root directory of the path I give it. I tried following the example in the
- Tech Notes directory q and as for full path names, but that gives me a system
- crash as well. (This uses PBGetCatInfo). Any suggestions as to what I am
- doing wrong?
- Dan Murphy
- mur@phy.duke.edu
- --
- Daniel Murphy 1-919-660-2522
- Duke University Dept. of Physics mur@phy.duke.edu
- Durham, N.C. 27706
-