Command to open a directory in a new tab
Moderators: Hacker, petermad, Stefan2, white
Command to open a directory in a new tab
Hi!
I set a lot of key shortcuts to go directly to certain directories I frequently use. Now I'm asking if there's a command (or way) to set some new key shortcuts to go to those directories but in a new tab.
Thanks in advance!
Cheers
I set a lot of key shortcuts to go directly to certain directories I frequently use. Now I'm asking if there's a command (or way) to set some new key shortcuts to go to those directories but in a new tab.
Thanks in advance!
Cheers
I Love Total Commander!
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
RTFM:
TC help, 'Command line parameters' page wrote:/T Opens the passed dir(s) in new tab(s)
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
I do know how to add short-cut, which open directory in active tab (cd c:\MyDirectory),
I do know how to add short-cut, which create new tab in active window (cm_opennewtab)
But I do not know how to add shortcut which merge above two in one, so I can open desired directory in new tab. Any ideas?
I do know how to add short-cut, which create new tab in active window (cm_opennewtab)
But I do not know how to add shortcut which merge above two in one, so I can open desired directory in new tab. Any ideas?
I Love Total Commander!
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Please execute the following command (after replacing my path with yours):
This command can be executed from command line, hotkey, bar button, alias, etc.
And read the "Command line parameters" chapter carefully!
Code: Select all
%COMMANDER_EXE% /L=c:\your\path /O /T
And read the "Command line parameters" chapter carefully!
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
sidefx88 wrote:Thanks for answering, but I don't get it.
One of my original commands assigned to a keyboard shortcut is:
[usercmd.ini]
[em_usercmd5]
button=
cmd=cd e:\Music
sidefx88 wrote:I do know how to add short-cut, which open directory in active tab (cd c:\MyDirectory),
I do know how to add short-cut, which create new tab in active window (cm_opennewtab)
But I do not know how to add shortcut which merge above two in one, so I can open desired directory in new tab. Any ideas?
[usercmd.ini]
[em_cdMusic]
button=
cmd=cd e:\Music
[em_cdMusicNewTab]
button=
cmd=cm_opennewtab,em_cdMusic
When defining a new user command click the Help button. You will see:ts4242 wrote:2white
Where is the documentation of this?
Help wrote:Command: There are many possible commands which can be placed in this field:
1. ...
2. You can also place one or more of Total Commander's internal menu commands here comma-separated. Just click on the button with the magnifying glass and choose a command from the dialog box "Choose command".
Example for multiple commands: cm_SelectAll,cm_Copy
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
2ts4242
You need to put cd "C:\" inside a command (e.g. em_driveC).
You need to put cd "C:\" inside a command (e.g. em_driveC).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com