Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running external program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01051001
Message ID:
01051025
Views:
15
>>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...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform