How to change compressed files icon to WinRAR's ?

English support forum

Moderators: white, sheep, Hacker, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36425
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-05-14, 10:41 UTC

You need to define an internal association for *.rar via Files - Internal Associations - Add. Just leave the "open" command empty, and set the icon to what you want.
Author of Total Commander
http://www.ghisler.com

User avatar
Stefan2
Power Member
Power Member
Posts: 2144
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2018-05-14, 10:43 UTC

krstatzar wrote:I updated to the latest beta and cannot confirm that this new icon feature actually works. Do I need to check some option or what?
History.txt wrote:25.03.18 Added: Icon from internal association takes precedence over internal packer icon (e.g. for *.rar) (32/64)

Did you have set a internal association first?






 

User avatar
krstatzar
Junior Member
Junior Member
Posts: 79
Joined: 2005-03-03, 01:52 UTC
Contact:

Post by *krstatzar » 2018-05-17, 09:54 UTC

ghisler wrote:You need to define an internal association for *.rar via Files - Internal Associations - Add. Just leave the "open" command empty, and set the icon to what you want.
Thank you Christian, this is awesome feature :D

User avatar
vulliw
Junior Member
Junior Member
Posts: 6
Joined: 2014-03-29, 09:17 UTC
Location: Venlo Netherlands
Contact:

Post by *vulliw » 2018-05-19, 12:07 UTC

You need to define an internal association for *.rar via Files - Internal Associations - Add. Just leave the "open" command empty, and set the icon to what you want.

Or select predefined selection type

there are no icons in it

I have not a icon ???
Last edited by vulliw on 2018-05-19, 12:15 UTC, edited 1 time in total.

User avatar
Ovg
Power Member
Power Member
Posts: 544
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2018-05-19, 20:54 UTC

2vulliw
Icon file or something that contains icon(s) should be somewhere on your PC. Press >> for browse your PC for them or download from https://yadi.sk/i/tRqFDMKK3WCsGJ.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.21a x64, Windows 7 SP1 x64

User avatar
vulliw
Junior Member
Junior Member
Posts: 6
Joined: 2014-03-29, 09:17 UTC
Location: Venlo Netherlands
Contact:

Post by *vulliw » 2018-05-22, 07:26 UTC

Ovg wrote:2vulliw
Icon file or something that contains icon(s) should be somewhere on your PC. Press >> for browse your PC for them or download from https://yadi.sk/i/tRqFDMKK3WCsGJ.
Thanks its working !!! :)

hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes » 2018-06-27, 07:21 UTC

ghisler(Author) wrote:You need to define an internal association for *.rar via Files - Internal Associations - Add. Just leave the "open" command empty, and set the icon to what you want.
Hi guys,
I also try to change the file icons for archive files - but with no success.
I use a searches_associations.ini in the wincmd.ini. for all other filetypes it worked well - except the archives -> still the default icon. I am on 9.20rc2x64

Code: Select all

[Searches]
...
; ------ Compressed ->12
compressed_SearchFor=*.gz *.bz2 *.tgz
compressed_SearchIn=
compressed_SearchText=
compressed_SearchFlags=0|000001000020||||||||22222|0000|
; ------ ZIP ->13
zip_SearchFor=*.zip
zip_SearchIn=
zip_SearchText=
zip_SearchFlags=0|000001000020||||||||22222|0000|
; ------ 7Zip ->14
and in associations

Code: Select all

[Associations]
...
Filter12=>compressed
Filter12.icon=%commander_path%\..\..\#Grafik\#Icons\#Inuse\Files\icon_genarch.ico
Filter13=>zip
Filter13.icon=%commander_path%\..\..\#Grafik\#Icons\#Inuse\Files\icon_zip.ico
Are there any settings I have to change in the wincmd.ini?
Thank you

User avatar
Stefan2
Power Member
Power Member
Posts: 2144
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 » 2018-06-27, 08:02 UTC

2hennes
Which TC version do you use?






 

hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes » 2018-06-27, 08:29 UTC

Hi,
I am on 9.20rc2 x64
Thanks

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

Post by *petermad » 2018-06-27, 14:36 UTC

2hennes
Try this in stead:

Code: Select all

[Associations]
...
Filter12=*.gz *.bz2 *.tgz
Filter12.icon=%commander_path%\..\..\#Grafik\#Icons\#Inuse\Files\icon_genarch.ico 
Filter13=*.zip
Filter13.icon=%commander_path%\..\..\#Grafik\#Icons\#Inuse\Files\icon_zip.ico
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes » 2018-06-27, 18:26 UTC

2petermad
This does not work for me :( Also if I try this style for other filters they also stop working.

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

Post by *petermad » 2018-06-27, 22:09 UTC

This works for me, EXCEPT for *.zip files:

Code: Select all

[Searches]
Arkiver_SearchFor=*.zip *.7z *.rar *.r0? *.cab *.arj *.lha *.lzh *.uc2 *.ace *.arc *.pak *.zoo *.sqz *.hyp *.wsz *.jar *.gz *tgz *.qz *.z *.hqx *.uu *.uue *.sit *.aes *.icl *.sqx *.chm *.bzip2 *.bz2 *.wim *.xz *.its *.iso
Arkiver_SearchIn=
Arkiver_SearchText=
Arkiver_SearchFlags=0|00000|||||||||0000

[Associations]
Filter14=>Arkiver
Filter14.icon=%COMMANDER_PATH%\..\#Grafik\pack.ico
As you can see here: http://madsenworld.dk/tcmd/packericon.png

I think the problem is in your _SearchFlags=0|000001000020||||||||22222|0000| - It tells TC to look for compressed files, so if your files are not compressed it fails.

Try with: _SearchFlags=0|00000|||||||||0000
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes » 2018-06-28, 06:56 UTC

2petermad
Hello Peter, Thanks now it works. For me it even works with * .zip (own filter). I look now at the SearchFlags again more closely.
Best regards, Hannes

Post Reply