Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read him his rights
Message
 
À
01/05/2001 11:27:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00501983
Message ID:
00501986
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform