Internal associations - relative paths

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
geoslake
Junior Member
Junior Member
Posts: 8
Joined: 2014-10-21, 07:20 UTC

Internal associations - relative paths

Post by *geoslake »

Hi

Im trying to configure TC to my needs, I already created a custom button bar, to launch my usual apps and its working fine.
I want all path to be relative so that my TC install is portable, so I put all required programs in a TC subfolder.

My button bar consists in things like :
%COMMANDER_PATH%\Notepad++\Notepad++.exe

For internal associations, im using the TC menu in "files", Ive created multiple extensions, for instance *.txt and its associated action is :
"%COMMANDER_PATH%\Notepad++\Notepad++.exe" "%1"

At the moment , all things associated with Notepadd++ work, but now im trying to associate archives with peazip (portable), and the %commander_path% thing doesnt work for peazip, I have to use absolute path, then it works. Can it be a bug ?

Also, TC doesnt show me the app icons for those internal associated files..

Thanks

--edit--
I just replaced Peazip with winrar and it works...
It doesn't work for Sumatra pdf either...
User avatar
Stiltzkin
Member
Member
Posts: 196
Joined: 2004-09-10, 17:15 UTC

Re: Internal associations - relative paths

Post by *Stiltzkin »

geoslake wrote: , so I put all required programs in a TC subfolder.
do you know about

Code: Select all

%COMMANDER_DRIVE%
?

my totalcmd is located on

Code: Select all

d:\Totalcmd\
so

Code: Select all

%COMMANDER_DRIVE%
translates to

Code: Select all

 d:\
e.g:

Code: Select all

%COMMANDER_DRIVE%\PortableApps\FirefoxPortable\FirefoxPortable.exe
you should check your [Associations] section in your config file,
it should look something like this:

Code: Select all

Filter211=*.txt
Filter211_open=%COMMANDER_PATH%\Tools\Notepad++\notepad++.exe "%1"
Filter211.icon=%COMMANDER_PATH%\Icons\Documents\txt.ico
geoslake
Junior Member
Junior Member
Posts: 8
Joined: 2014-10-21, 07:20 UTC

Post by *geoslake »

Thanks for the help, anyway I wasn't able to get Peazip portable and a few more programs to work this way, so I gave up, some worked, some didn't, in a random way it seems.

Cheers.
User avatar
nsp
Power Member
Power Member
Posts: 1954
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

geoslake wrote:Thanks for the help, anyway I wasn't able to get Peazip portable and a few more programs to work this way, so I gave up, some worked, some didn't, in a random way it seems.

Cheers.
If your portableApps use a wrapper, sometimes the wrapper does not send the parameters as you wish...

About peazip portable, it works on my machine..
Did you set the command like this:

Code: Select all

"%COMMANDER_PATH%\tools\peazip\peazip.exe" "%1"
Did you use the official portable version ?
geoslake
Junior Member
Junior Member
Posts: 8
Joined: 2014-10-21, 07:20 UTC

Post by *geoslake »

I was using the portable version from peazip :
http://peazip.sourceforge.net/peazip-portable.html
Post Reply