General information
Category:
Windows API functions
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only