Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining Network User Rights
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00479800
Message ID:
00480039
Vues:
26
>>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
>
>Hi Will,
>
>Thanks for the feedback. I was thinking of doing something like this (guess I should have mentioned that in the original post) - it seems to be the easiest way to accomplish the task.
>
>To anyone else who reads this post - is this the way you test to see if the user has been given sufficient rights to a network folder containing your app?

What server OS are you needing help with? My app data reside on Novell server, so I use NetLib which will return all user rights to a specific folder on the server. In Novell, I check for the [R]ead, [F]ile Scan, [C]reate, [W]rite, [E]rase and [M]odify rights.

The above example covers Create, Read, Erase, File Scan and Write. I am not sure about Modify. To confirm Modify rights, you may have to close the handle then try to reopen the file and modify it. Until the file is closed the first time, I believe you are still in the Create process.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform