[Implemented in Tc11.03rc3} [Tc11] Suggestion: COMMANDER_INI_PATH
Moderators: Hacker, petermad, Stefan2, white
Re: Behavior of: %COMMANDER_INI%\..
2petermad
I perceive the combination file_name_path as a full name, And in the code I demonstrated why. _PARENT explicitly points to the directory. _PARENT_PATH would be a bit long, IMHO.
But since the variables don't initially offer EXE/INI file names without paths, _PATH will probably be more appropriate here.
I perceive the combination file_name_path as a full name, And in the code I demonstrated why. _PARENT explicitly points to the directory. _PARENT_PATH would be a bit long, IMHO.
But since the variables don't initially offer EXE/INI file names without paths, _PATH will probably be more appropriate here.
Overquoting is evil! 👎
Re: Behavior of: %COMMANDER_INI%\..
2Fla$her
%COMMANDER_SETTINGS% could alo be an option for the name - if implemented.
%COMMANDER_SETTINGS% could alo be an option for the name - if implemented.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Behavior of: %COMMANDER_INI%\..
I based my suggestion on commander_path. commander_ini_path looks pretty strange but it's self-explanatory. I think commander_settings, on the other hand, leads to numerous questions in the forum and is less good.
Re: Behavior of: %COMMANDER_INI%\..
_SETTINGS is a bad identifier, it doesn't point to a path or a name. How about _INI_DIR?
Overquoting is evil! 👎
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
_INI_DIR is also OK, but since we have %COMMANDER_PATH% already it seems more consistant with %COMMANDER_INI_PATH%
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
If you are not using ini files with different filename lengths, you can use a substring, for example:
Code: Select all
%COMMANDER_INI:~0,-11%
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Have you tried to use substring in Win9x?
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
TC 11.03 RC1 history wrote:17.01.24 Added: New environment variable %COMMANDER_INI_PATH%: Directory of the settings file wincmd.ini (32/64)
Overquoting is evil! 👎
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Wow, very nice at the customer side (no more discussions). Thanks.
Edit:
There is a minor issue: At COMMANDER_INI_PATH is a trailing \, other than at COMMANDER_PATH. It should be removed.?
Edit:
There is a minor issue: At COMMANDER_INI_PATH is a trailing \, other than at COMMANDER_PATH. It should be removed.?
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
I find it ok
because one can add filenames after it without needing an additional \
Windows 11 Home, Version 24H2 (OS Build 26100.2161)
TC 11.50b4 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.4 x64
TC 11.50b4 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.4 x64
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Unbelievable.
I'm gonna use it, though.
Edit:
Sorry, I won't.
Now I've just deleted SetEnv COMMANDER_INI_PATH %"StrLeft(%COMMANDER_INI%, StrLen(%COMMANDER_INI%) - 11)" entry in wdx\Autorun\autorun.cfg that wasn't in use anyway. And that's it.
I'm glad someone else would be happy.
I've been interested in %COMMANDER_PARENT% one, which I'm using a lot.
Last edited by beb on 2024-01-18, 17:38 UTC, edited 1 time in total.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Pathes under Windows are specified standard without a trailing \... (Only at driveletter:\ it divers)
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths
Where "\directory" refers to a folder...
Examples: %HOMEPATH% %SystemRoot% %Temp% ....
https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths
Code: Select all
....
Fully Qualified vs. Relative Paths
....
A single backslash, for example, "\directory" or "\file.txt". This is also referred to as an absolute path.
....
Examples: %HOMEPATH% %SystemRoot% %Temp% ....
Last edited by JOUBE on 2024-01-18, 22:25 UTC, edited 7 times in total.
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
%COMMANDER_INI_PATH%\name.ext reads better than %COMMANDER_INI_PATH%name.ext.
Overquoting is evil! 👎