Pass all selected files as command-line arguments

Ideas for new features

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

Post Reply
173234
Posts: 2
Joined: Tue Jan 06, 2004 5:04 pm

Pass all selected files as command-line arguments

Post 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,
RS
User avatar
CyberSlug
Posts: 120
Joined: Sat Oct 04, 2003 3:41 am

Post 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.
173234
Posts: 2
Joined: Tue Jan 06, 2004 5:04 pm

Post 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,
RS
Nonni
Posts: 1
Joined: Thu Mar 18, 2004 10:22 am

Post by Nonni »

I wholeheartedly support this suggestion. In fact it's the reason I went to this forum in the first place :-)
Post Reply