Command line utility to quickly synchronize console folder with TC
Moderators: Hacker, petermad, Stefan2, white
Command line utility to quickly synchronize console folder with TC
I've made a command line utility to quickly synchronize external console current folder with the folder in one of Total Commander panels.
Run tccd to print current folders in the left and right panels.
Run "tccd l" or "tccd r" and "cd c:\left_or_right_folder" string will be sent to your current console window.
Utility page on Totalcmd.net
Run tccd to print current folders in the left and right panels.
Run "tccd l" or "tccd r" and "cd c:\left_or_right_folder" string will be sent to your current console window.
Utility page on Totalcmd.net
-
- Junior Member
- Posts: 91
- Joined: 2006-11-07, 16:36 UTC
- Location: Trieste, Italy
- Contact:
Re: Command line utility to quickly synchronize console folder with TC
... that is obviously down... can't wait to have a try
Re: Command line utility to quickly synchronize console folder with TC
I published it just a couple a days ago, it's sad seeing Totalcmd.net down.
Please, check the release on Github: https://github.com/jackhab/tccd/releases
Please, check the release on Github: https://github.com/jackhab/tccd/releases
Re: Command line utility to quickly synchronize console folder with TC
the path is not displayed/found on my installation
Re: Command line utility to quickly synchronize console folder with TC
What TC version do you run?
Re: Command line utility to quickly synchronize console folder with TC
Same issue here. 10,10.51,10.52RC1/2 32/64bit .
I have a nircdmc version just for source :
and another script to set current path to new tab:
I maintain a commander_path env variable to refelct totalcommander installation folder.
I have a nircdmc version just for source :
Code: Select all
@echo off
nircmdc clipboard clear
nircmdc win sendmsg class TTOTAL_CMD 0x433 2029 0
nircmdc clipboard set "PUSHD ~q~$clipboard$~q"
nircmdc sendkeypress ctrl+v enter
Code: Select all
@start "" %commander_path%\totalcmd64 /O /T /S "%CD%"
Re: Command line utility to quickly synchronize console folder with TC
Hi adoeller
I made a new version which displays window handles for debug when launched as tccd d
Do you mind trying it and posting the output?
Re: Command line utility to quickly synchronize console folder with TC
hi, I tried your debug version and also the original version, and now with the 10.52rc2 they both show the panel path 

Re: Command line utility to quickly synchronize console folder with TC
Can you do the opposite? Create a new tab on the left or right with the current cmd path? Because I've already created a button that opens the target panel's path on cmd, but I'd really like to do the reverse. After using cmd and navigating to a different directory, I wish I could open it on TCMD's running process without overriding the open tabs (or overriding with a flag).
Re: Command line utility to quickly synchronize console folder with TC
you mean something like
Code: Select all
"C:\Program Files\totalcmd\TOTALCMD64.EXE" /O /T /R=%CD%
Re: Command line utility to quickly synchronize console folder with TC
Hi adoeller,
Is it possible that you run TC as Administrator and open a normal user console? In this case tccd will not be able to read the folders from TC window because it has lower privileges.
Re: Command line utility to quickly synchronize console folder with TC
i normally do not run as admin. at the moment, it is working. 
