Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining Network User Rights
Message
De
27/02/2001 03:13:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00479800
Message ID:
00479920
Vues:
31
>Hi,
>
>I would like to be able to determine if a user has been granted sufficient folder rights (i.e. read, write, delete) to run my app. I don't know how many times I get calls related to problems where a system administrator has installed the app on a network drive but forgot to give the user sufficient rights to that folder. Is there any relatively painless way to check for this in my startup program?
>
>TIA, Al

Just a thought...

You could just try and create a file using fcreate - check if it returns a file handle
Then do a FILE() check on it
Then write some data to it
Then read that data back
Close the handle
And delete the file

If any of the above fails then don't launch the app.

HTH
Will Jones
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform