Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: ADIR()
Divers
Thread ID:
00255332
Message ID:
00255391
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform