Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check user's rights
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01210145
Message ID:
01211100
Vues:
23
Naomi,

Do you know if there is a generalized way available within VFP (maybe a set of API calls that somebody has figured out?) that will return NTFS permissions for a specific file or folder for the user who is running the VFP app at the moment?

Thanks.


>>Hi friends
>>am just wondering how to check user rights on a folder ?
>>quite a few times we get complaints from our clients that our software throwing errors but when we investigate it just that they dont have rights to one of our software related folders.
>>
>>we want check that during login to our app and notify user with friendly a message.
>>even though the problem is not directly linked our software but it seems to be profession approach and clients need to call their admin guy not us to fix.
>>
>>Thanks for advise
>
>Found simple solution
>oFSO = CreateObject("Scripting.FileSystemObject")
>loFolder = oFSO.GetFolder("c:\photos")
>=MESSAGEBOX(loFolder.Attributes)
>
>See http://fox.wikis.com/wc.dll?Wiki~WindowsScriptingHost
>
>http://www.microsoft.com/technet/scriptcenter/guide/sas_scr_tspz.mspx?mfr=true
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform