Button to open specific directory in left and right panels
Moderators: Hacker, petermad, Stefan2, white
Button to open specific directory in left and right panels
I'd like to create a button that opens the directory containing
c:\xampp\apache\conf\extra\httpd-vhosts.conf
in the left panel; and
c:\Windows\System32\drivers\etc\hosts
in the right panel.
I can't see how to accomplish this and either I'm not using the correct Search keywords, or this hasn't been asked before.
Thanks.
c:\xampp\apache\conf\extra\httpd-vhosts.conf
in the left panel; and
c:\Windows\System32\drivers\etc\hosts
in the right panel.
I can't see how to accomplish this and either I'm not using the correct Search keywords, or this hasn't been asked before.
Thanks.
You can make a button like this:
totalcmd.exe /o /l=c:\xampp\apache\conf\extra\httpd-vhosts.conf /r=c:\Windows\System32\drivers\etc\hosts
But this will only position the cursor in both sides to your files.
You can't open them automatically without addional scripts.
I think what you are trying to acomplish is a job for any editor
which allows to open mutiple files from its command line.
totalcmd.exe /o /l=c:\xampp\apache\conf\extra\httpd-vhosts.conf /r=c:\Windows\System32\drivers\etc\hosts
But this will only position the cursor in both sides to your files.
You can't open them automatically without addional scripts.
I think what you are trying to acomplish is a job for any editor
which allows to open mutiple files from its command line.
help wrote:Start path: Determines the path to be set before the program is started. If no path is given, then the path of the source window is set.
Important: If the command (given in the command box) is cd drive:\directory, then the path given in this edit box is set in the other window! This allows to set both paths (source and target) at the same time.
Thanks for your replies.
Horst - Thanks but that didn't work for me creating a button within TC, it did work for me as a desktop shortcut.
White - I ended up using CD \path_to_file1 as Command and \path_to_file2 in the Start path
MVV - I didn't really understand Ctrl+D as I've never used the Directory Hotlist before. But I like it a lot
Now I can do CTRL+D and click on "Hosts" and I get the same results as with White's button.
Conclusion: Total Commander is full of pleasant surprises. The discovery of CTRL+D will allow me to remove a few buttons from my button bar once I have configured my DirectoryHotlist and replace them with a single cm_DirectoryHotlist button.
PS I don't get notifications as I have a Gmail account.
Horst - Thanks but that didn't work for me creating a button within TC, it did work for me as a desktop shortcut.
White - I ended up using CD \path_to_file1 as Command and \path_to_file2 in the Start path
MVV - I didn't really understand Ctrl+D as I've never used the Directory Hotlist before. But I like it a lot

Conclusion: Total Commander is full of pleasant surprises. The discovery of CTRL+D will allow me to remove a few buttons from my button bar once I have configured my DirectoryHotlist and replace them with a single cm_DirectoryHotlist button.
PS I don't get notifications as I have a Gmail account.
2TimA
Try to use Directory Menu Editor it will make creating the directory menu very easy.
Try to use Directory Menu Editor it will make creating the directory menu very easy.
This is known issue http://www.ghisler.ch/board/viewtopic.php?t=34109PS I don't get notifications as I have a Gmail account.
2TimA
Copy and paste this to your button bar:
Copy and paste this to your button bar:
Code: Select all
TOTALCMD#BAR#DATA
cd c:\xampp\apache\conf\extra\httpd-vhosts.conf
TOTALCMD.EXE,6
c:\Windows\System32\drivers\etc\hosts
-1
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar