Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read him his rights
Message
 
To
01/05/2001 11:27:41
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00501983
Message ID:
00501986
Views:
23
>We have a little launcher app which just checks for the existence of an executable (there may be 3 or more executables in different directories), and displays a command button for each of the exes found. Now I need to replace the "for each of the exes found" with "for each of the exes the current user has the rights to execute". So, instead of "if file(lcExeName)" it would be "if [insert function name here, please](lcExeName)".

Hi Dragan,

Let me admit up front this is a kludge < g >

In your situation, since your executables live in different directories and assuming user rights are already set appropriately on those directories, I would still use FILE(). My lcExeName would be fully pathed with either a drive mapping or IP address or Machine name... then I count on the fact that if the user does not have rights to the fully qualified exe name, they wont be able to see it and thus FILE() will fail.

Will this work for you or am I missing something here?
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Reply
Map
View

Click here to load this message in the networking platform