Page 2 of 5
Re: Behavior of: %COMMANDER_INI%\..
Posted: 2023-11-10, 14:41 UTC
by Fla$her
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.
Re: Behavior of: %COMMANDER_INI%\..
Posted: 2023-11-10, 17:19 UTC
by petermad
2Fla$her
%COMMANDER_SETTINGS% could alo be an option for the name - if implemented.
Re: Behavior of: %COMMANDER_INI%\..
Posted: 2023-11-10, 18:06 UTC
by JOUBE
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%\..
Posted: 2023-11-11, 19:48 UTC
by Fla$her
petermad wrote: ↑2023-11-10, 17:19 UTC
%COMMANDER_SETTINGS% could alo be an option for the name - if implemented.
_SETTINGS is a bad identifier, it doesn't point to a path or a name. How about _INI_DIR?
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2023-11-12, 10:08 UTC
by petermad
_INI_DIR is also OK, but since we have %COMMANDER_PATH% already it seems more consistant with %COMMANDER_INI_PATH%
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2023-11-12, 11:22 UTC
by white
If you are not using ini files with different filename lengths, you can use a substring, for example:
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2023-11-12, 18:29 UTC
by Usher
Have you tried to use substring in Win9x?
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2023-11-12, 18:36 UTC
by white
Usher wrote: ↑2023-11-12, 18:29 UTC
Have you tried to use substring in Win9x?
It is parsed by Total Commander..
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 14:49 UTC
by Fla$her
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)
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 15:36 UTC
by JOUBE
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.?
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 16:54 UTC
by Horst.Epp
JOUBE wrote: ↑2024-01-18, 15:36 UTC
There is a minor issue: At COMMANDER_INI_PATH is a trailing \, other than at COMMANDER_PATH. It should be removed.?
I find it ok
because one can add filenames after it without needing an additional \
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 17:15 UTC
by beb
Fla$her wrote: ↑2024-01-18, 14:49 UTC
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)
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.
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 17:17 UTC
by Sir_SiLvA
Horst.Epp wrote: ↑2024-01-18, 16:54 UTC
JOUBE wrote: ↑2024-01-18, 15:36 UTC
There is a minor issue: At COMMANDER_INI_PATH is a trailing \, other than at COMMANDER_PATH. It should be removed.?
I find it ok
because one can add filenames after it without needing an additional \
Its called consistancy
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 17:30 UTC
by JOUBE
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
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.
....
Where "\directory" refers to a folder...
Examples: %HOMEPATH% %SystemRoot% %Temp% ....
Re: [Tc11] Suggestion: COMMANDER_INI_PATH
Posted: 2024-01-18, 17:30 UTC
by Fla$her
Horst.Epp wrote: ↑2024-01-18, 16:54 UTC
because one can add filenames after it without needing an additional \
%COMMANDER_INI_PATH%
\name.ext reads better than %COMMANDER_INI_PATH%name.ext.