Multi Commander > Support and Feedback

Relative paths

(1/1)

kalekseishaken:
I have installed multi Commander in a folder called

     {DriveLetter}:\pUtilities\MultiCommander

When I press a button called ProgEditor, I want it to use the programmers editor found in

     {DriveLetter}:\pUtilities\fastEditor

How do I declare a relative drive or path (relative of course to where the Multi Commander application executed from?

Thanks,
Kalek Seishaken

Mathias (Author):
File Editor Setup dialog when configuring what file editor to use. Type in a path that are relative to the installation path of MC.

for your example that would be

eg  "..\fastEditor\fastEditor.exe"

kalekseishaken:
Thanks for the response, that does not appear to work.

Let me ask you this. Is there a constant for the path of the application (in other words the path where Multi Commander is located)?

For example, the path that is in focus can be referred to as {focusfilepath}.

If there is a similar constant for the application path, then that would pretty much solve the problem. The editor is one that I wrote and it is a standalone executable. I even tried creating a folder for it under the MultiCommander\Extensions folder, and I just cannot get it to execute.

Multi Commander appears to be very well thought out, so I am assuming that it is something I am missing.

Sincerely,
Kalek Seishaken

Mathias (Author):
No there is no constant for that.. I might add some for the next release.

You can try to edit the config file manuall.

"Menu > Go to > config folder" and  then edit MultiCommander.xml

The find the editors tag and change that

eg

<editors>
    <editor name="Notepad2" cmd="..\n2\notepad2.exe" parameters="${filepath}" ext="*"/>
</editors>

I got it working with notepad2

Mathias (Author):
From build 814 it is now possible to specify the ${mcinstallpath} tag in the editor filepath field.

So "${mcinstallpath}\..\MyEditor\Editor.exe" Will now work. Even when running from USB.

Navigation

[0] Message Index

Go to full version