That works great!  :-)

I just created a tool with these parameters:

Name: Run active file (compiled source only)
Path: %Dir%%Name%.exe
Default Directory: %Dir%
X Capture Program Output Window

I run it and the program output shows up in the Log Window - _Thanks!_



*And while you're being so helpful, I have another question...* B-]

I'm using the GNU 'indent' utility to reformat C source files. I want to be able
to take the current file, send it to an external program (i.e., indent) and then
reload the modified output back into the current buffer, replacing the existing
file contents. I've managed to get somewhat close by creating a tool with these
settings:

Name: Format C source
Path: c:\cmd\ndent.cmd   *(a wrapper around 'indent.exe')*
Parameters: %Name%%Ext%
Default Directory: %Dir%
X Capture Program Output Window
Log Window Type: Memo

That puts the external program's output into the log window where I can copy and
paste it into the current buffer. Of course, I have to remove the "Process
completed, Exit Code 0. Execution time: 00:00.468" message at the bottom of the
output, though.

Is there an easier / cleaner / better method?

Thanks again for a great editor.

-- 
Len Philpot  <><

<http://forum.pspad.com/read.php?2,51906,51912>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem