passing parameters to external program

You have encountered a problem using Far Manager? Here you can get help.
Locked
tomyam
Posts: 4
Joined: Thu May 19, 2005 8:17 pm
Location: Malaysia

How to pass filenames in PanelL and PanelR to a utility?

Post by tomyam »

Is there any trick, plug-in to allow me to send filenames, either highlighted or selected from PanelLeft and PanelRight to a command line utility? I'm trying to use a file compare utility and retyping filenames that I want compared is really tedious. Especially if they resides in deep directories.

thank you
User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex »

help is here
F2 F1 Enter
read it.

example of using gnu diff:
edit:<diff -c -p "!#!\!^!.!" "!\!.!"
tomyam
Posts: 4
Joined: Thu May 19, 2005 8:17 pm
Location: Malaysia

Post by tomyam »

found it. thank you very much :D
jbt302
Posts: 1
Joined: Fri Oct 28, 2005 7:28 pm

External Editor - passing parameters

Post by jbt302 »

Hi,

I'm trying to setup Editpad as my external editor
in Far. In the 'Editor Command' field, I've tried
various parameters like %f,%1,etc but the file
to be edited will not come up automatically in
Editpad when I hit Alt-F4. Any help or advice
would be appreciated.

thanks
User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex »

Use: !.!
RTFM, it's easy - F1.
pywacket
Posts: 2
Joined: Fri Nov 25, 2005 2:03 pm
Location: Germany

passing parameters to external program

Post by pywacket »

Hi,

I got a problem with passing parameters to an external program. When done via 'apply command' everything works fine, all selected files are passed, but when I execute the same command in an user menu only the file under the cursor is passed, not the other selected files.
Anyone ever had the same problem? Or am I just to blind to see a setting for this?

Thanks in advance
User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex »

Could you show the command?
pywacket
Posts: 2
Joined: Fri Nov 25, 2005 2:03 pm
Location: Germany

Post by pywacket »

sure:

Code: Select all

c:\programme\foobar2000\foobar2000.exe /play "!.!"
ender
Posts: 5
Joined: Mon Jun 06, 2005 3:44 pm

Post by ender »

Shouldn't that "!.!" be !& instead?
Locked