[Implemented] New environment variable needed

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

as a workaround - extract TC's icons from the binary, and distribute it with your Menus.
Yes, but that was just an example. I have a lot of other constructions where it would be easier with a new environment variable like for example:

Code: Select all

[em_ext_newcommander2]
cmd=%COMSPEC% /C
param=start "Total Commander Basic" /WAIT "%%COMMANDER_PATH%%\TOTALCMD.EXE" /i="%%COMMANDER_INI%%\..\wcmd_ext_tc.ini" /f="%%COMMANDER_INI%%\..\wcmd_ext_ftp.ini" && del "%%COMMANDER_INI%%\..\wcmd_ext_*.ini"
iconic=1
menu=Open a new instance of Total Commander with clean  ini-files
button=%COMMANDER_PATH%\TOTALCMD.EXE
Right now I have 67 occurrences of totalcmd.exe in my wcmd_pm_dan.ini file, 14 occurrences in my wcmd_pm.dan.bar and 5 occurences in my wincmd.ini so there are all kinds of examples.
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
TLis
Member
Member
Posts: 111
Joined: 2004-06-02, 16:48 UTC
Location: Szczecin, Poland

Post by *TLis »

I can see pros and cons of having both 32 and 64-bit versions in the same folder. Moreover, users could rename the 64-bit executable, if they like it. In both cases having a dedicated internal environment variable COMMANDER_PROGRAM could help. I believe adding a new internal environment variable should be simple and the executable could fairly easily determine the value of it (Application.ExeName, if I am not mistaken). Then, why not add it, if it is that simple ...
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Right now you may already use Autorun.wdx[64] for defining COMMANDER_PROGRAM variable and don't bother about it. :)
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Autorun.wdx[64]
And where do I find 64 bit autorun.wdx - totalcmd.net only has the 32 bit version, and I can't find any reference to a 64bit version here on this forum.
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
Sir_SiLvA
Power Member
Power Member
Posts: 3295
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Balderstrom wrote:If Mr.Ghisler would rename the binary back to its original "TotalCMD.exe", then all we would lose is the ability to install TC x86 and x64 in the same place. They can still use the same data folder. And various problems would be fixed.
And new problems arise, like doubled files.
(You might dont care for space - other people do)

RANT: Oh and ofc everything that is 20 years old is bad,
you proberbly perfer mp3s over vynil too? :evil:

You where the one that threw into the discussion
"...whom most likely organizes their own files meticulously..."
but if I tell about the same file 2 times on a harddrive as a problem you scream
"you mean there would be 500-1000KBytes of wasted space by having
them installed into a separate folder. Heaven Forbid we can't have that. "


The easiest solution to peters problem would be to do as plugin
authors do - make two versions: one for 32bit and one for 64bit
Speed Commander is possibly the most customizable
Oh when Did Sven made it possible to create your own Menu-Files?
Apart from the fact this topic was about an envvar and filenames
not customisation...
Hoecker sie sind raus!
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

petermad wrote:
Autorun.wdx[64]
And where do I find 64 bit autorun.wdx - totalcmd.net only has the 32 bit version, and I can't find any reference to a 64bit version here on this forum.
Sorry, it seems that it is not posted at totalcmd.net, but it is available here.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Sir_SiLvA wrote:
Balderstrom wrote:If Mr.Ghisler would rename the binary back to its original "TotalCMD.exe", then all we would lose is the ability to install TC x86 and x64 in the same place. They can still use the same data folder. And various problems would be fixed.
And new problems arise, like doubled files.
(You might dont care for space - other people do)

RANT: Oh and ofc everything that is 20 years old is bad,
you proberbly perfer mp3s over vynil too? :evil:
Why do you insist on insulting people and/or making assumptions about them. It doesn't bring anything worthwhile to the conversation at hand. And reflects poorly on you, when you frequently attack other members of the community here.
Sir_SiLvA wrote:You where the one that threw into the discussion
"...whom most likely organizes their own files meticulously..."
but if I tell about the same file 2 times on a harddrive as a problem you scream
"you mean there would be 500-1000KBytes of wasted space by having
them installed into a separate folder. Heaven Forbid we can't have that. "
If a few duplicate files are so heinous, one could easily hardlink them.
Sir_SiLvA wrote:
Balderstrom wrote:Speed Commander is possibly the most customizable
Oh when Did Sven made it possible to create your own Menu-Files?
I'm sure he hasn't enabled creation of custom menu's, but again I didn't claim that he had. Is that a missing feature in many File Managers, I suppose you could look at it like that --- except when most commands are available already from the menus and are already organized logically, then thats one thing the end user doesn't have to bother trying to fix.
Sir_SiLvA wrote:Apart from the fact this topic was about an envvar and filenames not customisation...
You brought it here, by accusing me of not even trying other file managers, or did you forget that?
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

To Moderators

Maybe these latest Autorun.wdx postings could/should be moved to a separate thread in the "Plugins and addons: devel.+support (English)" section :?:
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
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod][OT] posts split to Autorun.wdx.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have added one pointing to the program now, it's called:
%COMMANDER_EXE%

Please try it!
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Seems to work correctly.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Thanks!
Works perfectly.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Thank you very much for this new env. var! - seems to work fine so far :-) :-) :-) :-)
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
Post Reply