[Help]Show color for NTFS compressed file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
EasyCao
Junior Member
Junior Member
Posts: 6
Joined: 2004-06-23, 18:12 UTC

[Help]Show color for NTFS compressed file

Post by *EasyCao »

Which guru could tell how to display blue(or other color) in TC which files are compressed at NTFS ?
poiuytr
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-23, 17:33 UTC

Post by *poiuytr »

Look at Wiki
848
Junior Member
Junior Member
Posts: 21
Joined: 2003-08-10, 19:33 UTC
Location: The Netherlands

Post by *848 »

This should work..

Configuration > Options...

A new window "Configuration" opens.

Click on Color

enable (default on) "Define colors by file type.." and click on this button.

A new window "Define colors by file type" opens.

Click on Add..

A new window "Specify file type" opens.

Click on the "Define.." button

A new window "Define selection" opens.

Click on the "Plugins" tab.

enable "Search in plugins:" and select "AND (all match)"
Use these values;
Plugin: tc
Property: compressed
OP: =
Value: Yes

Click on the Save button


A new window "Save" opens.

Enter "Encrypted files" (or whatever you want) and click on OK

The "Save" window closes and the "Specify file type" becomes the active window.
Now you see "Encrypted files" under "Or predefined selection type:" Select this line.
This name will popup in the specify file type box starting with >
Click the OK button.

Now a window "color" pops up. Select or enter a color. Microsoft uses

blue (Hue:160 Red:0, Sat:240 Green:0, Lum:120 Blue:255) for compressed files
and Green (Hue:80 Red:0, Sat:240 Green:128, Lum:60 Blue:0) for encrypted files.


Click on OK.

Now the window "Define colors by file type" becomes active again. Now you see >Encrypted
files in the color you selected earlier.

Press OK twice.

Now the encrypted files should have the color you selected.

Follow this procedure again for the compressed files.


Succes
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

You could also do this change manually to your wincmd.ini file

Code: Select all

[Searches]
Compressed_SearchFor=
Compressed_SearchIn=
Compressed_SearchText=
Compressed_SearchFlags=0|000001000020||||||||22222|0000

[Colors]
ColorFilter1=>Compressed
ColorFilter1Color=16711680
If you already have a ColorFilter1 then use another number (like ColorFilter8).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

... and finally, you can use an AutoHotkey script!



Just kidding...
I switched to Linux, bye and thanks for all the fish!
848
Junior Member
Junior Member
Posts: 21
Joined: 2003-08-10, 19:33 UTC
Location: The Netherlands

Post by *848 »

@SanskritFritz: Could you fill me in on the AutoHotkey script?

@petermad: I think your example misses one line;

Encrypted files_plugin="tc.encrypted = 1"

Without this line all files and dirs get the color defined in ColorFilter1Color.

I've completed your example with coloring both encrypted and compressed files and dirs the way MS does;

[searches]
Encrypted files_SearchFor=
Encrypted files_SearchIn=
Encrypted files_SearchText=
Encrypted files_SearchFlags=0|000002000020|||||||||0000
Encrypted files_plugin="tc.encrypted = 1"
Compressed files_SearchFor=
Compressed files_SearchIn=
Compressed files_SearchText=
Compressed files_SearchFlags=0|000002000020|||||||||0000
Compressed files_plugin="tc.compressed = 1"

[Colors]
ColorFilter1=>Encrypted files
ColorFilter1Color=32768
ColorFilter2=>Compressed files
ColorFilter2Color=16711680
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2848
Could you fill me in on the AutoHotkey script?
Sure:

Code: Select all

loop 1000
  Send 848{Enter}
This was just a joke, hope you dont mind :-) as I said above in my post: Just kidding...
I switched to Linux, bye and thanks for all the fish!
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

SanskritFritz wrote:

Code: Select all

loop 1000
  Send 848{Enter}
:D
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
848
Junior Member
Junior Member
Posts: 21
Joined: 2003-08-10, 19:33 UTC
Location: The Netherlands

Post by *848 »

@SanskritFritz

Hmm.. My mistake, Missed the small letters there. This happens to me all the time :roll:
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2848
I do not have:
Encrypted files_plugin="tc.encrypted = 1"
and it works fine here.

Notice that my:
Compressed_SearchFlags=0|000001000020||||||||22222|0000
is different form your:
Compressed files_SearchFlags=0|000002000020|||||||||0000

So maybe that makes the difference.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
848
Junior Member
Junior Member
Posts: 21
Joined: 2003-08-10, 19:33 UTC
Location: The Netherlands

Post by *848 »

@petermad

Your solution works indeed. Not only I should read the small letters beter, numbers too. :oops:

I've looked into this some more and it seems there is more than one way to color files. The difference is that you select the compressed files in the Advanced tab of the define selection window. I used the plugins tab to select the files. I've completed "your way" with coloring of encrypted files.


[Searches]
Compressed_SearchFor=
Compressed_SearchIn=
Compressed_SearchText=
Compressed_SearchFlags=0|000001000020||||||||22222|0000
Encrypted_SearchFor=
Encrypted_SearchIn=
Encrypted_SearchText=
Encrypted_SearchFlags=0|000000000010||||||||22222|0000
[Colors]
ColorFilter1=>Compressed
ColorFilter1Color=16711680
ColorFilter2=>Encrypted
ColorFilter2Color=32768

I've tested both my examples by adding the lines to a clean ini file and the result looks the same. No mistakes this time I hope :wink:
BrainSlugs83
Junior Member
Junior Member
Posts: 6
Joined: 2014-03-13, 02:48 UTC
Location: Washington, US

Post by *BrainSlugs83 »

848 wrote:...
blue (Hue:160 Red:0, Sat:240 Green:0, Lum:120 Blue:255) for compressed files
and Green (Hue:80 Red:0, Sat:240 Green:128, Lum:60 Blue:0) for encrypted files.
...
Thanks, this works great for me!

I would like to point out -- at least for the Aero theme in Windows 7 (x64) the colors you provided looked a bit off to me. So I took a screen shot and eyed it up a little bit.

For Compressed files you supplied: #0000FF (0, 0, 255) -- but I think #0039FD (0, 57, 253) looks a lot closer. (From a screen shot, this color shows up the most I think. Friggin' anti-aliased text!)

[Note #1: FYI, you don't have to enter the HSL values in the color picker dialog (you can enter either/or but you don't have to enter both RGB and HSL) but it's good to provide them for confirmation that I didn't typo something -- so, the HSL values for the above color are: (151, 240, 119)].

[Note 2: Some parts of the file text, if you take a screen shot in windows explorer are #0000FF (the color you specified), but those are mostly blended edges AFAICT. To me, #0039FD looks much closer when I just eye it up.]

Apparently my organization has a user policy that prevents encryption, but from memory, the color looks spot on (and #008000 sounds right anyway), so I won't nitpick. :-)
Post Reply