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?
Combine match dir and synchronize browsing
Moderators: Hacker, petermad, Stefan2, white
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Button:
CDL2R.cmdCommand: cmd /c CDL2R.cmd
Parameters: %X"%P" "%T"
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%"
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
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 ?
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
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
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
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.