Page 1 of 1
Execute external exe from withing textpad
Posted: Wed Feb 26, 2003 6:05 pm
by Gert Van Assche
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
Re: Execute external exe from withing textpad
Posted: Thu Feb 27, 2003 5:55 pm
by Jahandar
Read about the "Tools" feature in TextPad's help file. It contains all the information you'll need.
Re: Execute external exe from withing textpad
Posted: Thu Feb 27, 2003 8:40 pm
by Gert Van Assche
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
Re: Execute external exe from withing textpad
Posted: Fri Feb 28, 2003 2:22 am
by Jahandar
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.