How to change compressed files icon to WinRAR's ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Post by *ghisler(Author) »

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
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

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: 84
Joined: 2005-03-03, 01:52 UTC
Contact:

Post by *krstatzar »

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: 8
Joined: 2014-03-29, 09:17 UTC
Location: Venlo Netherlands
Contact:

Post by *vulliw »

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: 756
Joined: 2014-01-06, 16:26 UTC

Post by *Ovg »

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 11.01 x64, Windows 7 SP1 x64
User avatar
vulliw
Junior Member
Junior Member
Posts: 8
Joined: 2014-03-29, 09:17 UTC
Location: Venlo Netherlands
Contact:

Post by *vulliw »

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 »

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: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

2hennes
Which TC version do you use?






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

Post by *hennes »

Hi,
I am on 9.20rc2 x64
Thanks
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

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 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes »

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: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

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 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hennes
Junior Member
Junior Member
Posts: 12
Joined: 2003-02-19, 12:08 UTC

Post by *hennes »

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
KaNaT
Junior Member
Junior Member
Posts: 2
Joined: 2018-12-21, 14:57 UTC

Re: How to change compressed files icon to WinRAR's ?

Post by *KaNaT »

Hello everyone.
I don't change icons use IconLib=%Commander_path%\oxy-gnome4TCv2_WinRar_5.60
1-copy .dll file in to TC directory
2-close TC
3-open wincmd.ini in to TC directory and under "configuration" paste IconLib=%Commander_path%\oxy-gnome4TCv2_WinRar_5.60
4-restart TC
5-fail :)
How can I do? pls help.
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: How to change compressed files icon to WinRAR's ?

Post by *Ovg »

IconLib=%Commander_path%\oxy-gnome4TCv2_WinRar_5.60.dll
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
Post Reply