Renoir@cup.portal.com (Andrew III Miller) (09/21/90)
I am trying to open the resource fork for every file on a disk and extract information from the 'vers' resource. I currently have a recursive scanning routine assembled that scans the disk for all the files. As the scan is running I want to open each file and extract the info. I am using OpenResFile and giving it each file name as I get it form the disk. This only works for the files in the system folder and fails for all the rest. I have heard that the concept of the working directory is important here and that I must make the folder I am searching the current working directory for the OpenResFile to work. I have checked into using PBOpenWD but I do not understand it! I do not clearly understand the difference between ioWDDirID, ioVRefNum and ioWDProcID. The confusion results between using vRefNum for the volume and working directory. Now I may have this working directory idea completely wrong and it is not needed to make this thing go. Whatever, I would like to search the entire disk for say all the files of type 'APPL' and extract info form the 'vers' resource. I am using Think C 4.0 and am an experienced programmer. I need a guiding hand to make this come clear. If anyone has a clue please send me the secret. Mucho Thanks Andy