Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!n8emr!cmhgate!f135.n102.z1.FIDONET.ORG!Alex.Maluta From: Alex.Maluta@f135.n102.z1.FIDONET.ORG (Alex Maluta) Newsgroups: comp.sys.mac.programmer Subject: Re: Repeat SetVol query Message-ID: <28633.2555C882@cmhgate.FIDONET.ORG> Date: 4 Nov 89 03:02:45 GMT Sender: ufgate@cmhgate.FIDONET.ORG (newsout1.26) Organization: FidoNet node 1:102/135 - The Manhattan Tran, Manhattan Beach CA Lines: 22 You CAN use SetVol() with the working directory returned by SFGetFile(). I do this all the time, then use standard pascal reset() and rewrite() procedures. However, remember that this is only a working directory and the system has a limit (40 I think) of them. Using the working directory number right after a call to SFGetFile() should be no problem, but you may run into problems if you hold onto the WDRefNum for a while (such as placing it into a queue) since the system may clear a working directory on you. If you need to make a working directory permanent, call GetWDInfo() to get a dirID, then use the HSetVol() procedure. . By the way, passing the working directory from SFGetFile() to SetVol() is the primary way compatability was maintained from MFS to HFS. . At least that's the way I understand it ... . Alex Maluta -- Alex Maluta via cmhGate - Net 226 fido<=>uucp gateway Col, OH UUCP: ...!osu-cis!n8emr!cmhgate!102!135!Alex.Maluta INET: Alex.Maluta@f135.n102.z1.FIDONET.ORG