>Since the search gave me either too much or too little, but invariably got me into the wrong direction, here's the problem, hoping the solution will be something simple I've overlooked from the start:
>
>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)".
>
>Is there any such beast? Does need to work on Linux, CP/M, VAX or AS400, just W2K.
>
>TIA, you'll save my day.
Dragan,
A technique that I used (a long time ago in 2.5/dos) to find if a user had sufficient rights to do something to a file was as follows...
Try and rename the file to itself
Rename filename.exe to filename.exe
If the user does not have NW rights an error is reported
If the user has rights then a different error is reported (something like cannot rename to the same name)
You need to have a localised error trapping routine for this but it does work (all this was on a Novell N/W but It may work in the same way)
HTH
Will Jones