is there a command line that points to the interal folder/path of tc portable mode?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
giulia
Senior Member
Senior Member
Posts: 311
Joined: 2013-09-14, 05:33 UTC
Location: Europe

is there a command line that points to the interal folder/path of tc portable mode?

Post by *giulia »

hi
is there a commad line that point to the internal folder for tc portable version ?

i would like to add fastcopy portable (seeing has a estimate destination free space) and run on an usb stick or a winpe 64/32bit

the point is that I have created a custom button , and i have added the commader the folder of the fastcopy

x:\totalcommander\fastcopy.exe

for example a custom button with a internal path -> tcpath\fastcopy.exe

because the x: could change pluging an usb stick with tc 64 and 32bit portable on another comptuer and could not find fastcopy.exe

in short an internal path , to fix it and use fastcopy as copier

thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *Horst.Epp »

Benutze die Envronment Variable COMMANDER_DRIVE
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
giulia
Senior Member
Senior Member
Posts: 311
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *giulia »

Horst.Epp wrote: 2021-01-17, 16:57 UTC Benutze die Envronment Variable COMMANDER_DRIVE
hi
sorry i don't get
Benutze die
i guess it's

Code: Select all

%COMMANDER_PATH%
thanks
Last edited by giulia on 2021-01-17, 17:52 UTC, edited 1 time in total.
love Total Commander , best file manager ever made
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *umbra »

Total Commander provides the following environmental variables (real paths will depend on where the TC is running):

Code: Select all

COMMANDER_DRIVE	C:
COMMANDER_EXE	C:\Program Files (x86)\Total Commander\TOTALCMD.EXE
COMMANDER_INI	C:\Users\<userName>\AppData\Roaming\GHISLER\wincmd.ini
COMMANDER_PATH	C:\Program Files (x86)\Total Commander
So, you can replace

Code: Select all

x:\totalcommander\fastcopy.exe
with

Code: Select all

%COMMANDER_PATH%\fastcopy.exe
Or some other combination, if that is more useful.
Windows 7 Pro x64, Windows 10 Pro x64
giulia
Senior Member
Senior Member
Posts: 311
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *giulia »

umbra wrote: 2021-01-17, 17:36 UTC Total Commander provides the following environmental variables (real paths will depend on where the TC is running):

Code: Select all

COMMANDER_DRIVE	C:
COMMANDER_EXE	C:\Program Files (x86)\Total Commander\TOTALCMD.EXE
COMMANDER_INI	C:\Users\<userName>\AppData\Roaming\GHISLER\wincmd.ini
COMMANDER_PATH	C:\Program Files (x86)\Total Commander
So, you can replace

Code: Select all

x:\totalcommander\fastcopy.exe
with

Code: Select all

%COMMANDER_PATH%\fastcopy.exe
Or some other combination, if that is more useful.
hi
perfect!
%COMMANDER_PATH% works great!
love Total Commander , best file manager ever made
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *petermad »

COMMANDER_INI C:\Users\<userName>\AppData\Roaming\GHISLER\wincmd.ini
And if you need to access other files in the directory ot the wincmd.ini file you can use:

Code: Select all

 %COMMANDER_INI%\..
for example:

Code: Select all

 %COMMANDER_INI%\..\usercmd.ini
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: is there a command line that points to the interal folder/path of tc portable mode?

Post by *Horst.Epp »

Using %COMMANDER_DRIVE% allows to make tool trees which are not inside of TC dir but on its drive.
Thats what all portable launchers provide and makes much more sense than strange relative pathnames
based on other TC variables.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
Post Reply