Page 1 of 1

Pass all selected files as command-line arguments

Posted: Tue Jan 06, 2004 5:16 pm
by 173234
Maybe I'm missing what's already there, but...

It would be nice to be able to select multiple files
from the Document Selector and have those file
names passed to my custom tool on the command
line.

In particular, I want to integrate a third-party compare
utility with TextPad. I am imagining that I would
configure those files similar to this in the Parameters
text box of the Preferences dialog (Tools section):

$File1 $File2

where $File1 would be the first file selected and $File2
would be the second, etc.

Thanks for considering,

Posted: Tue Jan 06, 2004 9:16 pm
by CyberSlug
I have a program that might help: It launches a window that allows you to select files, and then runs a program using the selected files. (So it's like an external document selector).

If you could post the command line of your tool, I can configure and post the program.

Posted: Tue Jan 06, 2004 10:15 pm
by 173234
Thanks for your post, CyberSlug. I do have another tool that will do what I want, I was just hoping to do it from within TextPad.

As an example, though, my utility would need to be launched thusly:

bc2.exe "c:\temp\source1.txt" "c:\temp\source2.txt" /fv

Thanks again,

Posted: Thu Mar 18, 2004 10:25 am
by Nonni
I wholeheartedly support this suggestion. In fact it's the reason I went to this forum in the first place :-)