>>But I'm working on a new program where it just doesn't work - returns >>maxFiles% as Zero every time, whatever I do. > > > After your DIMs, change "maxFiles% = 0" to "maxFiles% = 1". > > maxFiles% needs to be set to a positive number before calling FINDERINFO. I > don't know if it matters what you set it to. You may want to try making it > maxFiles% = 4 since that's the maximum you're accepting. > Thanks, Al. I'd tried this in between my post and your reply - all values from -1 to 5. Unfortunately, it doesn't work - same result. Any other suggestions ? Phil.