START with defined folders: how to go back to START again?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 13
- Joined: 2004-03-06, 14:07 UTC
START with defined folders: how to go back to START again?
Go to "start" position, is it possible?
Hello dear friends,
I am using TC for quite a long now. I do have one question though.
I have configured TC to start with panels at selected certain folders. After doing my job and going to various other folders, is it possible to go back to start position with one click?
I currently exit and restart TC to achieve this.
Thank you
Hello dear friends,
I am using TC for quite a long now. I do have one question though.
I have configured TC to start with panels at selected certain folders. After doing my job and going to various other folders, is it possible to go back to start position with one click?
I currently exit and restart TC to achieve this.
Thank you
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
DOS: Restart TC, Kill and start launch TC
You can automate the restart a little bit by let a DOS batch do the work.Fotis_Greece wrote:...
I have configured TC to start with panels at selected certain folders.
After doing my job and going to various other folders, is it possible to go back to start position with one click?
I currently exit and restart TC to achieve this.
Thank you
-- Save the code to the TC folder as "Restart.CMD"
-- Create a button
CMD="D:\rive\path to\Restart.CMD
or better "%Commander_Path%\sub folder if any\Restart.CMD"
PARAM=
ICON=WCMICONS.DLL
Click that button to restart TC.
You may have to set TC configuration to not save current open tabs.
Restart.CMD
Code: Select all
@ECHO OFF
REM Stefan 2016, Restart currently running TC
REM http://ghisler.ch/board/viewtopic.php?t=47493
REM Call it from a TC button:
REM CMD="D:\rive\path to\this.cmd"
REM or better CMD="%Commander_Path%\sub folder if any\Restart.CMD"
REM PARAM=
REM ICON=WCMICONS.DLL
REM .........................................
REM COMMANDER_DRIVE=X:
REM COMMANDER_EXE =X:\ToCo8\TOTALCMD.EXE
REM COMMANDER_INI =X:\ToCo8\wincmd.ini
REM COMMANDER_INSTANCE=1
REM COMMANDER_PATH =X:\ToCo8
ECHO Kill %COMMANDER_EXE%
ECHO EXE : %COMMANDER_EXE%
ECHO PATH : %COMMANDER_PATH%
REM Remove Com_Path from Com_Exe to get Exe-name only:
CALL SET TCExeName=%%Commander_EXE:%COMMANDER_PATH%\=%%
ECHO myExe: %TCExeName%
ECHO.
ECHO.
ECHO Remove the line with PAUSE if you don't need THIS message.
ECHO Press Ctrl+C to cancel this script, or any key to restart TC...
ECHO.
PAUSE
TASKKILL /IM %TCExeName%
ECHO Launch %COMMANDER_EXE%
START "" %COMMANDER_EXE%
REM PAUSE
HTH?

To make that even better add this 2 em_command to your usercmd.inisqa_wizard wrote:From the context menu of a tab select "Save tabs on both sides to file"
After this you have to create button with "OPENTABS <filename>"
With a click on this button you get back to start position.
Code: Select all
[em_savealltabs]
cmd=SAVETABS2L %COMMANDER_PATH%\SAVETABS2L.tab
menu=Save all tabs to file
[em_OpenSavedTabs]
cmd=OPENTABS %COMMANDER_PATH%\SAVETABS2L.tab
menu=Open tabs from file
No need to enter filename or use the tab context menu
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
-
- Junior Member
- Posts: 13
- Joined: 2004-03-06, 14:07 UTC
Thank you very much. That does the trick. It may sound silly but i was unaware of the tabs existence.sqa_wizard wrote:From the context menu of a tab select "Save tabs on both sides to file"
After this you have to create button with "OPENTABS <filename>"
With a click on this button you get back to start position.
May I kindly ask, is it possible when pressing that button (which loads the mystart.tab as I have named) NOT to show the tabs actually? I have a rather small laptop screen and would like to keep it minimal.
Thanks in advance and best regards from Greece
If you save tabs when you have no tabs, TC will restore only panel paths, w/o tabs.
You can use e.g. SAVETABS2L <filename> command from buttonbar button in order to save paths w/o tabs, and of course you can edit saved file and remove extra tabs from it. The only thing to mention: if you save tabs while right panel is active, OPENTABS will flip panels.
You can use e.g. SAVETABS2L <filename> command from buttonbar button in order to save paths w/o tabs, and of course you can edit saved file and remove extra tabs from it. The only thing to mention: if you save tabs while right panel is active, OPENTABS will flip panels.
-
- Junior Member
- Posts: 13
- Joined: 2004-03-06, 14:07 UTC
2Fotis_Greece
If you don't use tabs then this button is easier to use:
Just replace C:\ and F:\ with the two start directories of you choice.
You can just copy the green code here above to Clipboard and then right click on TC's button bar and choose Paste - then the button will be made for you. Make sure you have the cursor in the left file panel when you press the button - otherwise the two directories wil be swapped.
If you don't use tabs then this button is easier to use:
Code: Select all
TOTALCMD#BAR#DATA
cd C:\
%COMMANDER_EXE%,1
Go to Start
F:\
-1
You can just copy the green code here above to Clipboard and then right click on TC's button bar and choose Paste - then the button will be made for you. Make sure you have the cursor in the left file panel when you press the button - otherwise the two directories wil be swapped.
Last edited by petermad on 2017-03-14, 20:29 UTC, edited 2 times in total.
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
-
- Junior Member
- Posts: 13
- Joined: 2004-03-06, 14:07 UTC