Combine match dir and synchronize browsing

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Combine match dir and synchronize browsing

Post by *Lefteous »

It wpuld be great to have a command which does the following:
Left path: C:\Users\User1\Downloads\Backup
Right path: D:\Backup\Dir1\Dir2\Dir3\Dir4\Dir5

"Backup" left also contains the subdirs Dir1\Dir2\Dir3\Dir4\Dir5. So I want to go to C:\Users\User1\Downloads\Backup\Dir1\Dir2\Dir3\Dir4\Dir5 on the left side. So what I need now is a command which does that for me automatically. What do you think?
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Button:
Command: cmd /c CDL2R.cmd
Parameters: %X"%P" "%T"
CDL2R.cmd

Code: Select all

@ECHO OFF
:: CD Left to Right path
SET newDir=%~1..%~p2
REM ECHO newDir: %newDir%
START "" "%Commander_Path%\TotalCMD.exe" /O /L="%newDir%"
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I don't know if I get it right.

Left path: C:\Users\User1\Downloads\Backup\Dir1\Dir2\Dir3\Dir4\Dir5
Right path: D:\Backup\Dir1\Dir2\Dir3\Dir4\Dir5

If I change into:
Left panel: C:\Users\User1\Downloads\Backup\
Right panel: D:\Backup\

Next step: enable cm_SyncChangeDir

Using left pane breadcrump clicking on "Dir4" the panels should show:
Left panel: C:\Users\User1\Downloads\Backup\Dir1\Dir2\Dir3\Dir4\
Right panel: D:\Backup\Dir1\Dir2\Dir3\Dir4\

Anything like this ?
#5767 Personal license
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

That works sure, but Lefteous was talking about already being in the path on the right.
Thus if his current paths are:
Left path: C:\Users\User1\Downloads\Backup
Right path: D:\Backup\Dir1\Dir2\Dir3\Dir4\Dir5

Then my script above will change Left to:
C:\Users\User1\Downloads\Backup\Dir1\Dir2\Dir3\Dir4\Dir5
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Balderstrom
Thanks for the external solution. It proves that such a function is feasible. I hope there will be an external command in future TC versions.
Post Reply