Page 1 of 1

Inserting command output into open file

Posted: Wed Oct 04, 2000 6:13 am
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.

RE: Inserting command output into open file

Posted: Thu Nov 16, 2000 6:06 pm
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