Page 3 of 3

Posted: 2011-11-06, 02:08 UTC
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.

Posted: 2011-11-06, 07:49 UTC
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 ...

Posted: 2011-11-06, 07:54 UTC
by MVV
Right now you may already use Autorun.wdx[64] for defining COMMANDER_PROGRAM variable and don't bother about it. :)

Posted: 2011-11-06, 11:31 UTC
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.

Posted: 2011-11-06, 13:15 UTC
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...

Posted: 2011-11-06, 14:15 UTC
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.

Posted: 2011-11-06, 20:07 UTC
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?

Posted: 2011-11-08, 00:08 UTC
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 :?:

Posted: 2011-11-08, 22:53 UTC
by Hacker
[mod][OT] posts split to Autorun.wdx.

Hacker (Moderator)[/mod]

Posted: 2011-11-25, 15:13 UTC
by ghisler(Author)
I have added one pointing to the program now, it's called:
%COMMANDER_EXE%

Please try it!

Posted: 2011-11-25, 15:32 UTC
by Flint
Seems to work correctly.

Posted: 2011-11-25, 18:01 UTC
by Samuel
Thanks!
Works perfectly.

Posted: 2011-11-25, 21:54 UTC
by petermad
Thank you very much for this new env. var! - seems to work fine so far :-) :-) :-) :-)