A separate INI for history
Moderators: Hacker, petermad, Stefan2, white
A separate INI for history
I think it will be good, the main ini won't contain garbage and temp data, so will be more compact, and loading or cleaning history and temp data will be easier.
For compatibility TC may load history both from main and special file. But save only to special.
Blocks to be placed into separate file: [MkDirHistory], [SearchIn], [SearchText], [RenameTemplates], [SearchName], [Selection], [SplitPerFile], all [1280x1024 (8x16)] and similar.
Maybe it will be good to add a param to main ini with path to this file.
For compatibility TC may load history both from main and special file. But save only to special.
Blocks to be placed into separate file: [MkDirHistory], [SearchIn], [SearchText], [RenameTemplates], [SearchName], [Selection], [SplitPerFile], all [1280x1024 (8x16)] and similar.
Maybe it will be good to add a param to main ini with path to this file.
What do you think about RedirectSection like that:
It's just implemented and works fine.
mf
Code: Select all
[Command line history]
RedirectSection=%COMMANDER_PATH%\wincmd_History.ini
[LeftHistory]
RedirectSection=%COMMANDER_PATH%\wincmd_History.ini
[MkDirHistory]
RedirectSection=%COMMANDER_PATH%\wincmd_History.ini
[RightHistory]
RedirectSection=%COMMANDER_PATH%\wincmd_History.ini
mf
Bankster - Word of the Year 2009
Hello, Boofo.
Yet, in the end, it all depends on what you want to achieve and where you store your %COMMANDER_INI% and the redirected INI files.
Cheers,
Karl
I do not think so, because %COMMANDER_INI% expands to a filename, whereas %COMMANDER_PATH% expands to a foldername.Wouldn't it be better to use %COMMANDER_INI%?
Yet, in the end, it all depends on what you want to achieve and where you store your %COMMANDER_INI% and the redirected INI files.

Cheers,
Karl
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
2m^2,
Thanks for the correction. It is still confusing to me, but it works. Isn't %COMMANDER_PATH% a file path also?
2karlchen,
I thought it would be better to have the history file in the same directory as the other INI files.
I think I understand better now after thinking about it.
and
Ok, that makes sense now. But I didn't understand the \..\ for the %COMMANDER_INI%. That part is what confuses me.
Thanks for the correction. It is still confusing to me, but it works. Isn't %COMMANDER_PATH% a file path also?
2karlchen,
I thought it would be better to have the history file in the same directory as the other INI files.
I think I understand better now after thinking about it.
Code: Select all
%COMMANDER_INI%= <path to INI directory>/wincmd.ini
Code: Select all
%COMMANDER_PATH%= Totalcmd directory (No filename)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
Hello, Boofo.
cd .. means: go one folder level back up.
cd %COMMANDER_PATH%\.. means: go to %COMMANDER_PATH% and one level back up.
cd %COMMANDER_INI%\.. means: go to %COMMANDER_INI% and one level back up. This works, because apparently the routine does not check whether %COMMANDER_INI% is a folder. So as a result it simply cuts off the (wincmd.ini) filename and takes you to the folder where %COMMANDER_INI% is located.
Example:
%COMMANDER_INI%=C:\Dokumente und Einstellungen\Karl\wincmd.ini
%COMMANDER_INI%\..=C:\Dokumente und Einstellungen\Karl
Kind regards,
Karl
cd .. means: go one folder level back up.
cd %COMMANDER_PATH%\.. means: go to %COMMANDER_PATH% and one level back up.
cd %COMMANDER_INI%\.. means: go to %COMMANDER_INI% and one level back up. This works, because apparently the routine does not check whether %COMMANDER_INI% is a folder. So as a result it simply cuts off the (wincmd.ini) filename and takes you to the folder where %COMMANDER_INI% is located.

Example:
%COMMANDER_INI%=C:\Dokumente und Einstellungen\Karl\wincmd.ini
%COMMANDER_INI%\..=C:\Dokumente und Einstellungen\Karl
Kind regards,
Karl
Last edited by karlchen on 2009-06-04, 14:30 UTC, edited 1 time in total.
2Boofo Please open in TC a DOS window (cm_ExecuteDOS) and type follwing command and a return on the end in the Dos Window:
This should solve all your confusion.
mf
Code: Select all
set c

mf
Bankster - Word of the Year 2009
- Boofo
- Power Member
- Posts: 1431
- Joined: 2003-02-11, 00:29 UTC
- Location: Des Moines, IA (USA)
- Contact:
2karlchen,
Thank for the explanation. the \.. threw me off because that usually takes you to the root of the drive. It seems it just cancels the wincmd.ini and basically makes %COMMANDER_INI% a path instead of the INI file.
2Mikefield
Thanks for that. I'll have to remember that. It gives a clear list.
Thank for the explanation. the \.. threw me off because that usually takes you to the root of the drive. It seems it just cancels the wincmd.ini and basically makes %COMMANDER_INI% a path instead of the INI file.
2Mikefield
Thanks for that. I'll have to remember that. It gives a clear list.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license
How do I un-overwrite all my data?
User of Total Commander
#60471 Single user license