Link to home
Start Free TrialLog in
Avatar of tfield98
tfield98Flag for United States of America

asked on

FindFirst/FindNext on UNC drive

I'm having trouble getting any files back when calling FindFirst on a UNC Drive, as in FindFirst('\\Dev-dx\*.*')

It always comes back false.

Is this a rights issue?

I can browse the top level list of folders on this drive in the Windows Explorer. I can examine the contents of some of them in the Windows Explorer. Some of them are locked by our system administrator from further examination. But, I thought that FindFirst should allow me to ennumerate the folders to which I have rights?
ASKER CERTIFIED SOLUTION
Avatar of Johnjces
Johnjces
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What I meant by "should work", is that FIndFirst should work fine (does for me) with a correct UNC path,
Avatar of tfield98

ASKER

With your answer, I realized I'll have to ennumerate ShareNames before calling FindFirst. A quick Google took em to WNetOpenEnum, which I believe is the tool I need to get started. Thanks!!