Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining Network User Rights
Message
From
27/02/2001 03:13:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00479800
Message ID:
00479920
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform