Option to start with the root folder of the TC drive
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 37
- Joined: 2023-08-31, 20:08 UTC
Option to start with the root folder of the TC drive
When Total Commander starts, by default it shows in both panels the root folder of drive C. My suggestion is to add a configuration option in wincmd.ini allowing Total Commander to start by showing in both panels the root folder of the drive Total Commander is started from. For example, if TC is started from the D:\Program Files\Total Commander folder, then it would start with D:\ in both panels.
#155067 Personal licence (March 2007)
Re: Option to start with the root folder of the TC drive
This is a very specific request, especially considering locked tabs, virtual folders, ftp and file system plugins.
I read it wrong.
I read it wrong.
Last edited by Fla$her on 2024-03-30, 07:20 UTC, edited 4 times in total.
Overquoting is evil! 👎
Re: Option to start with the root folder of the TC drive
Just start TC like this:
C:\totalcmd\TOTALCMD64.EXE /N %COMMANDER_DRIVE% %COMMANDER_DRIVE%
You can put that in the link you use to start TC with - replace C:\totalcmd\ with the appropriate path
C:\totalcmd\TOTALCMD64.EXE /N %COMMANDER_DRIVE% %COMMANDER_DRIVE%
You can put that in the link you use to start TC with - replace C:\totalcmd\ with the appropriate 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
Re: Option to start with the root folder of the TC drive
2petermad
The drives on the panels can be changed at any time. As far as I understand, it's necessary to take into account the current drives before closing TC.
The drives on the panels can be changed at any time. As far as I understand, it's necessary to take into account the current drives before closing TC.
Overquoting is evil! 👎
Re: Option to start with the root folder of the TC drive
No. the parameters:t's necessary to take into account the current drives before closing TC.
/N %COMMANDER_DRIVE% %COMMANDER_DRIVE%
ensure that TC is started with the drive of the starting TC in both panels - but only if TC is not started from a running TC instance (by clicking on totalcmdx64.exe in a folder on the other drive) - in that case the new TC is started with the drive of the running TC.
It will work if you use it in a Desktop or Taskbar .lnk file
So you can make different .lnk files for TC with different destinations like:
Total Commander on C.lnk
Destination: C:\totalcmd\TOTALCMD64.EXE /N %COMMANDER_DRIVE% %COMMANDER_DRIVE%
and:
Total Commander on D.lnk
Destination: D:\totalcmd\TOTALCMD64.EXE /N %COMMANDER_DRIVE% %COMMANDER_DRIVE%
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
Re: Option to start with the root folder of the TC drive
I don't see any connection with what I wrote. In addition, COMMANDER_DRIVE will not be deployed outside of TC and subprocesses.No. the parameters:
Overquoting is evil! 👎
Re: Option to start with the root folder of the TC drive
That's not true, when you use it in for example a .lnk file as explained here above - AND you click that link file from outside of TC, then TC will set the %COMMANDER_DRIVE% environment variable BEFORE it reads the command line parameters - why don't you try it, before you abandon it?COMMANDER_DRIVE will not be deployed outside of TC and subprocesses.
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
Re: Option to start with the root folder of the TC drive
It works, but my thesis has not ceased to be relevant, because TC recognizes variables, not the system.
In any case, it has nothing to do with saving the current drives before closing. You're proposing constants instead.
In any case, it has nothing to do with saving the current drives before closing. You're proposing constants instead.
Overquoting is evil! 👎
Re: Option to start with the root folder of the TC drive
Well, Profane0360 wants the drive of where the currently used TC is installed (started from) - that is constant - he is NOT asking for the drives TC was in at close down.You're proposing constants instead.
The title of this topic is "Option to start with the root folder of the TC drive" I can only interpret "the TC drive" as %COMMANDER_DRIVE%
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
Re: Option to start with the root folder of the TC drive
You're right. I reread the first post and realized that the first time I understood "started from" as "started with".
In this case, it makes sense to move this topic here.
In this case, it makes sense to move this topic here.
Overquoting is evil! 👎
-
- Junior Member
- Posts: 37
- Joined: 2023-08-31, 20:08 UTC
Re: Option to start with the root folder of the TC drive
@petermad: Yes, indeed, that was my intent: "the TC drive" is the %COMMANDER_DRIVE%. Thank you all for the feedback.
#155067 Personal licence (March 2007)