Hi all, I have an EXE that I'd like to execute from within Textpad. The exe will generate data and place them on the clipboard, or in the error level output.
I have 2 questions:
1. Can I execute external program (via a macro) ?
2. How can I capture the error level ?
Thank you for any idea on this subject
Gert
Execute external exe from withing textpad
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Jahandar
Re: Execute external exe from withing textpad
Read about the "Tools" feature in TextPad's help file. It contains all the information you'll need.
-
Gert Van Assche
Re: Execute external exe from withing textpad
Hi, I found that I can launch an external COM, BAT and EXE file, but I don't find any information on how to capture the errorlevel and get it into the text again.
What I do at the moment, is execute an EXE file, pass the $File and let this app put data on the clipboard. these data I paste with CTRL-V... Only trouble is that my colleagues will forget to paste, thus loosing the results from the EXE...
Can you be more specific on how data are captured and pulled into the text again ?
thanks
What I do at the moment, is execute an EXE file, pass the $File and let this app put data on the clipboard. these data I paste with CTRL-V... Only trouble is that my colleagues will forget to paste, thus loosing the results from the EXE...
Can you be more specific on how data are captured and pulled into the text again ?
thanks
-
Jahandar
Re: Execute external exe from withing textpad
If you specify it in the Tools as a DOS Command, and have it run that way, you'll have the option of capturing the output in TextPad.
I'm not sure how well it will fare with a non-console program, though.
I'm not sure how well it will fare with a non-console program, though.