Inserting command output into open file

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
James Garacci

Inserting command output into open file

Post by James Garacci »

I have always wanted to get this to work. Has anyone been able to do this?

i.e. Execute a DOS command and get the output inserted directly into the current open file.

It does not look like there is support for this in TextPad. I am able to get a macro that reads in the one-time only read contents of a generated temp file, i.e. I send the command output to a temp file, hit Ctrl-Shift-V and type in the file name every time.

Something like a insert command output to active document at current cursor position option in the DOS command config window. Guess that is an enhancement request.
Eric

RE: Inserting command output into open file

Post by Eric »

Did you ever get this to work in text pad? I want to do something similar. Instead of inserting into the current document, I want to replace the entire file with the output of a perl script that I wrote which has a complicated search and replace regex. If you figured out a way to have the command output into the file, please let me know!
thanks
eric
Post Reply