Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!eru!luth!sunic!sics.se!sics.se!boortz From: boortz@sics.se (Kent Boortz) Newsgroups: comp.sys.mac.programmer Subject: How to get dirID? Message-ID: <1990Aug17.115842.5018@sics.se> Date: 17 Aug 90 11:58:42 GMT Sender: news@sics.se Distribution: comp Organization: Swedish Institute of Computer Science, Kista Lines: 18 I try to find the directory ID of a directory that is located in the top directory/volume. Could anyone give me some advice, this code does not work. Instead it gives me the working directory. GetVol(volName,&volRefNum); ci->fileParam.ioFDirIndex = 0; ci->fileParam.ioDirID = 0; ci->fileParam.ioVRefNum = volRefNum; ci->fileParam.ioNamePtr = (StringPtr)"\pMyDirName"; if ((PBGetCatInfo(ci, false) == noErr) && (ci->fileParam.ioFlAttrib & ioDirMask)) return ci->fileParam.ioDirID; Kent Boortz boortz@sics.se