My application does the following.
Before the interface comes up it asks the users computer where is the executable for all of the programs that the application may need. Such as PDF, DOC, TXT, HTM, etc. I do this by using a call asking the Users Computer what program is brought up when a certain extension (PDF, etc..) is encountered. I then store the results into a Application Object, to be used later. If this is what you have in mind then I will be glad to send you the code.
>>>Hi everybody,
>>>
>>>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?
>>>
>>>Thanks in advance.
>>
>>Would the RUN command work?
>
>No, because it doesn't know where the exe is. I need to find in run-time where is my external exe. E.g. my colleague put
>#DEFINE cTextToPDFExe ["C:\Program Files\AdultPDF\Text To PDF\TxtToPDF.exe"]
>
>but I installed this program in the different folder and now his program is giving me error...
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope