Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: ADIR()
Miscellaneous
Thread ID:
00255332
Message ID:
00255391
Views:
8
>I have a recursive function that scans through
>all the subfolders on a network folder.
>
>Some of the folders have access rights which I
>do not have access to, so when I attempt to
>use ADIR(), I get nothing in my array.
>
>How do I check to see if I have access to a
>network folder before I attempt to access it?
>

There's no easy way to tell, because while you may be allowed to see the directory entry, you may not have access to the content.
(both NTFS and NetWare allow you to control access on a file by file basius as well as on a share, so your access rights in a parent directory don't give you any assurance of access to the directory content.)

>TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform