Open directory in second instance of TC

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Open directory in second instance of TC

Post by *tcebob »

I have a directory (called "Bobs") which I want to open in the right panel of a second instance of TC. The command line string is

Code: Select all

C:\Progs\totalcmd\TOTALCMD.EXE /n /R c:\all\Bobs
The second instance opens with the directory opened in both panels but I would like it to retain the left panel of the first instance.

Also, I'd like to show this directory in Thumbnail view but I can't find a command line setting to do that. Perhaps a separate Ini file?
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Copy and paste as button:

Code: Select all

TOTALCMD#BAR#DATA
%commander_exe%
/N /L=%X"%P" /R="c:\all\Bobs"
%commander_exe%
TC


-1
This will use the same path for the left panel.
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Post by *tcebob »

Thanks, ZoSTeR.
I pasted your code and created an icon. It does open the Bobs directory but on the right side. Also, it's in list view instead of thumbnail. I'll settle for the same instance instead of a new one but how can I automatically change the view to thumbnails?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Open in left panel: /L=<path>, open in right panel: /R=<path> (it was quite similar to your try from first post). Same instance: /O, new instance: /N.

New instance opens with saved directories and then changes them according to command line. So if it was opened both at same dir with such command line, one of them was saved and opened by TC initially.

If you want to change view mode to thumbnail view in right panel of second instance, you need to pass TC command cm_RightThumbs to that instance. If it has focus, you can use e.g. my TCFS2 tool: TCFS2.exe /ef "tcm(169)". However in order to open new TC and pass a command you may need a batch file (optional delay between commands may be needed in order to give second instance a time to have focus). Second way to change view mode is to set corresponding INI key and then start second instance, this may also be done with TCFS2: TCFS2.exe /ef "set_tcini(right, SpecialView, 2)".

If you define user-command em_TOTALCMD with command %COMMANDER_PATH% and parameter %A, it will be possible to do both actions with only TCFS2 w/o batch, e.g.:

Code: Select all

TCSF2.exe /ef "set_tcini(right, SpecialView, 2) tem(`em_TOTALCMD /N /R="c:\all\Bobs"`)"
tcebob
Member
Member
Posts: 178
Joined: 2003-03-23, 22:11 UTC
Location: Sunrise FL, USA

Post by *tcebob »

Thanks, MVV. I'll download TCFS2.
Post Reply