Sync folder/list view with command window?

Nov 29, 2012
3
0
Is it possible to have TCC keep the folder/list view in sync with the current folder of the command prompt? For example, if I select a folder in the folders view can TCC automatically switch to that folder? Similarly if I change directory in TCC can the folder view automatically focus to the new directory?

Mike
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Here's my stock answer to this question:

It can be done (but you really don't want to do it!). People periodically ask for either this or the reverse (moving the folder to match the CWD of the command line), but they invariably change their minds after trying it.

There are several serious drawbacks:

1) It will only work with TCC. No CMD, bash, PowerShell, etc.

2) It is a really, really, really bad idea to try it if you have more than one tabbed window.

3) TCC can only change its directory after executing a command line. You REALLY don't want TCC doing it in the middle of a command!

4) It will make drag & drop between the view windows & the TCC windows useless.

But if you want to personally experience the pain before deciding it's a bad idea, see "Take Command and TCC Integration" in the help. You can use the internal variables or CDD /T (or /TO) to change the directories as desired (usually in your PRE_EXEC alias).
 
Jan 19, 2011
604
14
Norman, OK
I use 2 aliases to handle the folder synchronization at the TCC prompt.

Code:
here=*cdd /to .
there=if "%_tcfolder" ne "" cdd "%_tcfolder"

"here" sets the folder view to the current directory at the TCC prompt.
"there" changes the current TCC prompt directory to match the selected folder in the folder view.
 
Similar threads
Thread starter Title Forum Replies Date
CWBillow Sync Folder Tree and Command Window? Support 11
P Sync /w won't delete in ftp folder Support 1
D SYNC /W copies back instead of propagating a delete Support 2
Alpengreis [v22.00.41] sync command flag "/X" does not work Support 22
thorntonpg sync /S /F creating empty directories Support 5
Joe Caverly How to? Use SYNC with a network drive Support 4
R SYNC /T /W does not suppress "deleting" messages Support 0
V WAD SYNC command problem Support 2
krischik SYNC crashes TCC Support 6
Peter Bratton Sync Surprise Support 6
D sync navigation between Folders List panel and the Tabs console Support 11
A Inverse of CDD /t c:\ (sync TCC currdir to Folders view)? Support 9
N Problem with Sync? Support 0
fishman@panix.com Startup Folder? Support 3
C writing folder names with JPSoft special chars like &...... Support 4
R How to? Set default application in a special folder Support 4
R How to? Open Take Command at current folder Support 7
D How to? Pass OpenHere Folder to CMD? Support 6
Chen Touboul When i try to delete an empty folder i got "the dirctoy name is invalid" Support 3
C How to bypass UAC warning when shortcut in \Startup folder ? Support 9
CWBillow Clearing out the Windows Temp folder Support 2
J directory or folder to start in Support 2
vefatica Refresh a folder in File Explorer? Support 0
P How to? Delete subfolders but not the folder itself Support 11
vefatica Shortcut/start-up folder nonsense Support 20
cgunhouse Crash on View/Folder Support 1
D Fixed Cut and paste in TC's file/folder view does not remove file Support 17
D Version 18 changed the naming convention of TC's folder Support 5
C How to? COPY ftp folder query Support 7
fpefpe How to? folder / explorer window Support 10
rps Documentation Folder combo box docs Support 1
J Startup folder Support 6
C DEL, connected Web folder, report Support 1
T How to? Adding TCC to startup folder Support 6
jbanaszczyk TCMD 16 Install - download folder Support 2
I How to? Save and restore folder timestamps Support 22
gschizas How to? How can I use select with a folder that already contains parentheses? Support 7
C Suggestions for Compare Folder Tree routine Support 5
J Change folder TCC starts in Support 2
gschizas Installation folder for TCMD x64 15.1 is wrong Support 5
D Folder/List view changed in v15 Support 8
C Startup folder not working on v15 Support 6
N WAD Take Command and UNCs for Folder List Support 10
aedthuio Folder with space char Support 6
fpefpe How to? Plugin Folder Support 1
vefatica New desktop and StartUp folder? Support 4
M Folder View Freezing Support 10
CWBillow Make a folder named Date-Time Support 18
C Problem navigating folder view Support 11
vefatica OT:Explain Win7's "start menu" folder? Support 17

Similar threads