[Implemented in Tc11.03rc3} [Tc11] Suggestion: COMMANDER_INI_PATH
Moderators: Hacker, petermad, Stefan2, white
[Implemented in Tc11.03rc3} [Tc11] Suggestion: COMMANDER_INI_PATH
Suggestion:
Next to the environment variables
COMMANDER_DRIVE
COMMANDER_EXE
COMMANDER_INI
COMMANDER_INSTANCE
COMMANDER_PATH
still missing (more and more):
COMMANDER_INI_PATH
Please implement it in TC11
JOUBE
Next to the environment variables
COMMANDER_DRIVE
COMMANDER_EXE
COMMANDER_INI
COMMANDER_INSTANCE
COMMANDER_PATH
still missing (more and more):
COMMANDER_INI_PATH
Please implement it in TC11
JOUBE
Last edited by JOUBE on 2024-01-29, 18:05 UTC, edited 3 times in total.
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
While i'm not against this request, note that has been discussed and
works for most cases.
Code: Select all
%COMMANDER_INI%\..\
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
I know it. And in wincmd.ini you can use relative path (e.g. RedirectSection=xyz.ini), but I could like it for batches at the customer side. *)Gral wrote: 2023-05-10, 10:36 UTC While i'm not against this request, note that has been discussed andworks for most cases.Code: Select all
%COMMANDER_INI%\..\
JOUBE
*) without explanations...
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
2JOUBE
[WDX] Autorun Plugin: Run commands/set envvars on TC start:
https://www.ghisler.ch/board/viewtopic.php?t=32427
autorun.cfg:
Code: Select all
SetEnv /EV COMMANDER_INI_PATH %COMMANDER_INI%\..\
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
That produces the following variable contentbeb wrote: 2023-05-10, 11:21 UTC [WDX] Autorun Plugin: Run commands/set envvars on TC start:
https://www.ghisler.ch/board/viewtopic.php?t=32427
autorun.cfg:Code: Select all
SetEnv /EV COMMANDER_INI_PATH %COMMANDER_INI%\..\
COMMANDER_INI_PATH=C:\Tools\Wincmd\wincmd.ini\..\
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
And what?
Now you just have %commander_ini_path% desired variable, refer to it, and otherwise use it as you want.
Check dir %commander_ini_path%, echo 'Hi'>%commander_ini_path%\test.txt commands for instance, and so on.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Sorry, this is nonsense.beb wrote: 2023-05-10, 12:25 UTCAnd what?
Now you just have %commander_ini_path% desired variable, refer to it, and otherwise use it as you want.
Check dir %commander_ini_path%, echo 'Hi'>%commander_ini_path%\test.txt commands for instance, and so on.
There is no benefit to get this result
which its the same as using %COMMANDER_INI%\..\
from any tool or batch started from TC.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
There is nothing to discuss if user making such a suggestion is not satisfied with the existing workarounds.
So without much enthusiasm as I don't need it but I support it
So without much enthusiasm as I don't need it but I support it
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
If you aren't this happy to seeing the dot-slash part there there're also other ways, e.g.:
autorun.cfg:
Code: Select all
SetEnv /EV COMMANDER_INI_PATH %"StrLeft(%COMMANDER_INI%, StrLen(%COMMANDER_INI%) - 11)"
I would be glad to support it too, but my similar suggestion just had been ignored (viewtopic.php?t=77608).
So I've simply ended up living used to the workarounds

#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Unfortunately, the display of the blue ticks in the directory hotlist does not work if \..\ is included in the path.
It would be good if that is added ("realpath").
Apart from that, it would of course be easier for paths pointing into the tc configuration if the variable COMMANDER_INI_PATH was present (instead use of %COMMANDER_INI%\..\)
Joube
It would be good if that is added ("realpath").
Apart from that, it would of course be easier for paths pointing into the tc configuration if the variable COMMANDER_INI_PATH was present (instead use of %COMMANDER_INI%\..\)
Joube
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
I didn't want to bring up the topic earlier, but since the need arose, I should still point out the beb error. The correct command is:
Code: Select all
SetEnv COMMANDER_INI_PATH %'StrLeft(COMMANDER_INI, StrPos(COMMANDER_INI, "\", -1) - 1)'
Overquoting is evil! 👎
Re: Behavior of: %COMMANDER_INI%\..
Controversial question, _PATH or _PARENT?not have a %COMMANDER_INI_PATH% variable
C:\totalcmd\wincmd.ini — isn't that the file path?
Moderator message from: petermad » 2023-11-11, 19:56 UTC
Moved this and the folowing 7 posts from "Behavior of: %COMMANDER_INI%\.." in "Total Commander [English]" to this topic
Overquoting is evil! 👎
Re: Behavior of: %COMMANDER_INI%\..
No, c:\totalcmd\ is the filepath and C:\totalcmd\wincmd.ini is the filepath+name.
Hoecker sie sind raus!
Re: Behavior of: %COMMANDER_INI%\..
folder path = the path to the directory
file path = the path to the file
No? See .vbs:
file path = the path to the file
No? See .vbs:
Code: Select all
With CreateObject("Scripting.FileSystemObject")
With .GetFile("C:\WINDOWS\System32\find.exe")
MsgBox .Path ' file path
MsgBox .ShortPath ' short file path
MsgBox .ParentFolder.Path ' parent folder path
End With
' BuildPath method get full name:
MsgBox .BuildPath("C:\Folder", "FileName.ext")
End With
' Path property get full name:
MsgBox CreateObject("Shell.Application").NameSpace(0).ParseName("Totalcmd.exe.lnk").GetLink.Path
Overquoting is evil! 👎
Behaviour of the CD command
I understand %COMMANDER_INI_PATH% as the path to the folder where all TC's ini files are located (wincmd.ini, wcx_ftp.ini contplug.ini fsplugin.ini pkplugin.ini fsplugin.ini usercmd.ini etc.). the file path to C:\totalcmd\wincmd.ini we already have as %COMMANDER_INI%Fla$her wrote: 2023-11-09, 22:42 UTC Controversial question, _PATH or _PARENT?
C:\totalcmd\wincmd.ini — isn't that the file path?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar