Jim, I believe the file type is (still) 255 for a directory. I'm just about to go off on Holiday, so I'm shutting down now, but nip over to Dilwyn's Web site and download my WinBack source code - it has a SuperBasic directory recursion routine which you should be able to convert.
On the other hand, if I remember correctly, I believe that there is a read_dir function in the C68 library docs - try that - I think it returns a struct which is the directory entry for that file/directory. From that you'll be able to recurse as required. As for assembly ............ :o) HTH regards, Norman. ------------------------------------- Norman Dunbar Database/Unix administrator Lynx Financial Systems Ltd. mailto:[EMAIL PROTECTED] Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com ------------------------------------- -----Original Message----- From: James Hunkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: [ql-users] 'c' Help - reading directories Guys, I need to be able to search a drive directory for a specific file using 'C' code. Is there somewhere that I can find either a piece of sample code ('C' or assembly) for reading file names (or traversing directories) from a directory/device? Or perhaps just general documentation on SMSQ/E directories and file names that would lead me to the method to do so? Thanks, Jim Hunkins This email is intended only for the use of the addressees named above and may be confidential or legally privileged. If you are not an addressee you must not read it and must not use any information contained in it, nor copy it, nor inform any person other than Lynx Financial Systems or the addressees of its existence or contents. If you have received this email and are not a named addressee, please delete it and notify the Lynx Financial Systems IT Department on 0113 2892990.