TC buttonbar on CD-Rom

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Guillaume
Junior Member
Junior Member
Posts: 90
Joined: 2003-04-08, 16:51 UTC

TC buttonbar on CD-Rom

Post by *Guillaume »

I want to put TC among with some other programmes on a cd-rom. Now to start some of these programmes, it would be nice to have them in the button bar. Is this possible (since the drive letter for the cd-rom is different on almost every computer)? Can I use somethin' like %srcdrv% (that one doesn't work, that's for sure, but it's an example of what I'm looking for).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There have been such discussions here in the board, just use the search function. The next TC version will set such an environment variable.
Author of Total Commander
https://www.ghisler.com
User avatar
Guillaume
Junior Member
Junior Member
Posts: 90
Joined: 2003-04-08, 16:51 UTC

Post by *Guillaume »

ghisler(Author) wrote:There have been such discussions here in the board, just use the search function. The next TC version will set such an environment variable.
Thanks Christian, I couldn't find it on the forum, must've used the wrong search keywords...
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 20:01 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The variable is called COMMANDER_PATH, and it will be used like this:
[FileSystemPlugins]
sampleplugin=%commander_path%\sampleplugin\sample.wfx

The variable itself does NOT contain a trailing backslash!
Author of Total Commander
https://www.ghisler.com
User avatar
Guillaume
Junior Member
Junior Member
Posts: 90
Joined: 2003-04-08, 16:51 UTC

Post by *Guillaume »

ghisler(Author) wrote:The variable is called COMMANDER_PATH, and it will be used like this:
[FileSystemPlugins]
sampleplugin=%commander_path%\sampleplugin\sample.wfx

The variable itself does NOT contain a trailing backslash!
Could you also implement a variable like %commander_drive%?? That's what I'm looking for...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Guillaume wrote:
ghisler(Author) wrote:The variable is called COMMANDER_PATH, and it will be used like this:
[FileSystemPlugins]
sampleplugin=%commander_path%\sampleplugin\sample.wfx

The variable itself does NOT contain a trailing backslash!
Could you also implement a variable like %commander_drive%?? That's what I'm looking for...
I fully agree to Guillaume: %COMMANDER_DRIVE% would be usefull too. If I want to start applications which are located above Total Commander in the directory tree %COMMANDER_PATH% isn't sufficient.
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 20:01 UTC, edited 1 time in total.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

norfie wrote:
I fully agree to Guillaume: %COMMANDER_DRIVE% would be usefull too. If I want to start applications which are located above Total Commander in the directory tree %COMMANDER_PATH% isn't sufficient.
I don't agree.
E.g.
COMMANDER_PATH=C:\TOTALCMD
access to program files can be realized with
"%COMMANDER_PATH%\..\program files"
You are right. One of the variables is redundant. You could also use %COMMANDER_DRIVE%\Total Commander\program files\..whatever
But there is a disadvantage when using something like "%COMMANDER_PATH%\..\program files: Every time I change Total Commanders location I have to adept the location of the external programs:

Example:

H:\Whatever\Totalcmd

Program called:

H:\Programs\Test\Test.exe

your solution:

%COMMANDER_PATH%\..\..\Programs\Test\Test.exe

moving Total Commander to

H:\Totalcmd

i need to redefine the call to:

%COMMANDER_PATH%\..\Programs\Test\Test.exe :cry:

I don't want any dependency between Total Commanders location and external program locations!
Redundancy is good sometimes!

Summary:
%COMMANDER_PATH% - Fine for Total Commander related stuff
%COMMANDER_DRIVE% - Fine for programs not related to Total Commander
User avatar
Guillaume
Junior Member
Junior Member
Posts: 90
Joined: 2003-04-08, 16:51 UTC

Post by *Guillaume »

Lefteous wrote:A whole story :wink:
Couldn't agree more...
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Lefteous wrote:%COMMANDER_DRIVE% - Fine for programs not related to Total Commander
If these programs have the same drive as TC, then they are a bit related to TC, aren't they? :)

%COMMANDER_PATH% is intended for launching TC and its plugins from any location on any PC without changing ini and bar files. If your progs are located in TC dir you can use %COMMANDER_PATH% in config files. If your progs reside outside TC there's no reason to use %COMMANDER_DRIVE% to point to them. Use %MY_PROGS_DRIVE% env. var. for this, because they are not related to TC in this case (these progs may be in different places on different PCs or even absent at all).

Nevertheless I like %COMMANDER_DRIVE% idea but cannot think of any usage of it... :)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Keep fingers crossed, that the %COMMANDER_PATH% is filled with the real drive just after launching TC.

Usually TC is started by AUTORUN.INF, which means with smth. like ".\Total Commander\TotalCmd.exe".

No drive, no ini entry, no registry and even the CL entry looks like "/i=.\Total Commander\wincmd.ini".

;)
#5767 Personal license
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

sqa_wizard wrote:Keep fingers crossed, that the %COMMANDER_PATH% is filled with the real drive just after launching TC.
You think bad about Christian! :) I think you may relax your fingers, everything will be alright! :)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

You think bad about Christian!
Yes probably right, I am a little bit hard with him, but I have seen a lot of partly implemented features (which are useless in this way).

Even you are right, that isn't related to TC stuff up to now.
#5767 Personal license
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Post by *pdavit »

sqa_wizard wrote:...but I have seen a lot of partly implemented features (which are useless in this way).
Hmm! Then why do you keep using TotalCmd? :)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Post Reply