>>
>>What is the best way to run an external executable, which could be anywhere on user's drive or not where at all (in such case we would need to show an error message)? E.g. if I don't know the exact path to this program, what should I do?
>
>Let user handle it. On the first run as user to point to the program with Open File dialog and store result somewhere for future use.
This process may run as a batch process. Right now I'm testing it from GUI, but we may want to try it to run in batch mode. However, I don't want to make this program slower than it has to be. Can you find out from prg the name of exe that called it? If it's batch, let it fail, otherwise we may use your suggestion and ask user for file location.
If it's not broken, fix it until it is.
My Blog