specific files sort mode for certain folder - any solution?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

specific files sort mode for certain folder - any solution?

Post by *leopoldus »

Hi to all!

Is there any solution to make TC to remember a specific files sorting mode (say, by date of modification) for certain folder? Say, the current folder is C:\AAA and sort mode is [by name]. Now I go the folder D:\YYY and TC automatically switch sorting mode to [by date]

Obviously it's not possible with regular CD command (Hot Directories list menu), but may be any other solution?

I suggest it to be possible with AutoHotKey or other similar script handler, but is there any simpler and, I'd say, more TC-native way?

Thanks!
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Try to create user-command that will use e.g. TCMC tool to change directory and then switch sorting (using internal commands like cm_SrcByName or cm_SrcByDateTime). So it should be something like:

Code: Select all

TCMC.exe CDS "D:\YYY" "" CMcm_SrcByDateTime
You can call such command from directory hotlist item.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

AHK could do it by monitoring the current file-path, certainly.

TwinKey has it built-in to it's native functions - does not work with x64.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2MVV
Try to create user-command that will use e.g. TCMC
Thank you, I'll examine this TCMC. Is it enough to install it and use your code or I have to configure this utility in certain way or make some other nesessairy preparations?

2Balderstrom
TwinKey has it built-in to it's native functions
I have TC 32bit and TwinKey installed, but use it very few. Could you please give a bit additional explanations, wich function you mean?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Is it enough to install it and use your code or I have to configure this utility in certain way or make some other nesessairy preparations?
Enough. It has no any configuration, works just via command line.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Launch the TwinKey binary, look at ViewMode
The first drop-down on the right, "TC View"

To make it work automatically, you need to configure "Auto Switch"
Choose a ViewMode that you just created,
And add a matching folder structure below,

Here's an example that displays an MP3 album's cover as the background:
View Modes
Mode list:
[x] MP3s
Description: MP3 Folders
TC View: <blank>
Tab color: <purple>
Tab icon: <music note>
Sort Files by [2] column
Background Picture: .\Cover.jpg

Auto Switch
[x] Enable
[x] Keep manual view switching in the same scope
View Mode: MP3s
Folder Filter:?X:\_H_\S2_AUDIO\*|!*\_ARTIST_\*\*

The folder filter looks complicated, but it's generated by the easier to define Match/Pattern below:

CAN contain: X:\_H_\S2_AUDIO\*
MUST contain: *\_ARTIST_\*\*

--- Which will match any folders like:

X:\_H_\S2_AUDIO\_ARTIST_\<ARTIST_NAME>\<ALBUM>\*

e.g.
X:\_H_\S2_AUDIO\_ARTIST_\30 Seconds to Mars\2002_30 Seconds to Mars\
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Post Reply