Information générale
Catégorie:
Fonctions Windows API
I don't know of a VFP function that will do what you ask. However, my assumption is that you are referring to network user rights. Outside of an API function, the only method I know of is:
****************************************************
function qlUserHasRightsTo
lparameters tcPath
local llAbleToOpen, lcTestFile, lnFileHandle
lcTestFile = tcPath + "\" + sys(3)
lnFileHandle = fcreate(lcTestFile)
llAbleToOpen = (( lnFileHandle > 0 ))
if llAbleToOpen
fclose(lnFileHandle)
erase(lcTestFile)
endif
return llAbleToOpen
****************************************************
The idea being, of course, that if you can open a low-level file for read/write access in the target directory (no matter what the system is -- Linux, etc), then your user probably has the proper rights that will allow your VFP app to run successfully.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement