Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check user's rights
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01210145
Message ID:
01211100
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform