>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