Auto Switch Mode: how to hide certain type of file automatically?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Auto Switch Mode: how to hide certain type of file automatically?

Post by *byblo »

Is there a way to select files type to automatically hide with the "Auto Switch Mode" ?

For instance, to hide automatically SFV files when entering on a certain folder, instead of manually pressing CTRL+F12, then select "*.*|*.sfv"
User avatar
petermad
Power Member
Power Member
Posts: 14788
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Auto Switch Mode: how to hide certain type of file automatically?

Post by *petermad »

Make this command in your usercmd.ini file:

Code: Select all

[em_hidesfv]
cmd=cd *.*|"*.sfv"
iconic=1

Make this entry in your wincmd.ini file (replace 16 with the next free number in your [ViewModes] section)

Code: Select all

[ViewModes]
16_name=Hide .sfv
16_icon=
16_commands=*em_hidesfv|cm_SrcAllFiles
16_options=-1|-1|0||-1|-1|-1

Make this entry in your wincmd.ini file (replace 16 with the number from your [ViewModes] section) - you should make it one of your first rules

Code: Select all

[ViewModeSwitch]
1_rules=?*.*\*.sfv
1_mode=16
Screenshots:
http://madsenworld.dk/tcmd/hidesfv1.png
http://madsenworld.dk/tcmd/hidesfv2.png
http://madsenworld.dk/tcmd/hidesfv3.png


You could also just put *.sfv in the Ignore list: "Configuration" -> "Options..." -> "Ignore list"
http://madsenworld.dk/tcmd/hidesfv4.png
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: Auto Switch Mode: how to hide certain type of file automatically?

Post by *byblo »

Thank you for the comprehensive answer :)
Post Reply