Hide drives from view

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
basil.cinnamon
Junior Member
Junior Member
Posts: 19
Joined: 2008-07-31, 22:19 UTC

Hide drives from view

Post by *basil.cinnamon »

It would be highly desirable to be able to hide certain drives from displaying, both in the tree view and in the drive button bar. This is feasible through the OS, but that is a permanent change that is very awkward to use and undo. It would be nice if TCdr had an option with check boxes to display or hide each drive.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, basil.cinnamon.

The existing wincmd.ini parameter DriveBarHide= is not sufficient? - I admit that to the best of my knowledge this parameter can be changed solely by editing the wincmd.ini manually. E.g. by using "Configuration => Change Settings Files Directly".
totalcmd.chm 4.b wincmd.ini wrote:DriveBarHide= Allows to hide certain parts of the button bar:
A-Z=drives
0-9=ftp
\ =Network Neighborhood
. =parent+root dir
- =volume label and free/total space
Contrary to the Allowed= option, the drives remain accessible via drive dropdown list (Alt+F1/F2), the "cd" command etc.
To hide terminal server drives, they must be given after a dollar sign:
DriveBarHide=A$CDE hides local drive A and host drives CDE.
Kind regards,
Karl
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I think that basil.cinnamon rather needs to use the parameter Allowed=

With this parameter he can exclude a drive everywhere in TC not just in the drivebar, but also in the tree views. He can't even CD to the drive using that parameter.

Notice that the parameter includes drives - it doesn't exclude.

So if you want to be able to see all drives except drive D: you have to write:

Allowed=abcefghijklmnopqrstuvwxyz\
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
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

"Allowed" is more restrictive - it prevents you from accessing the drive. "DriveBarHide" is recommended to hide rarely used drives, which you can still reach via Alt+F1 or Alt+F2 then.
Author of Total Commander
https://www.ghisler.com
basil.cinnamon
Junior Member
Junior Member
Posts: 19
Joined: 2008-07-31, 22:19 UTC

Allowed - no Alt+F1

Post by *basil.cinnamon »

Allowed is closer to what I need, but no, Alt-F1 and Alt-F2 do not get around the "disallowed" drives. To re-enable the display of those drives, I have to close TC, re-edit wincmd.ini, and reopen TC. That's a bit cumbersome. If the config interface of TC had show-drive options, one could do this on the fly. Mind you, I'm not trying to hide drives for security reasons, in which case none of the above options would be very good. I'm just trying to simplify the display to show only drives that are useful (documents, pictures, etc.), which also has the benefit of preventing erroneous drag/drop, deletes, etc.
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Re: Allowed - no Alt+F1

Post by *CharlesF »

basil.cinnamon wrote:Allowed is closer to what I need, but no, Alt-F1 and Alt-F2 do not get around the "disallowed" drives. To re-enable the display of those drives, I have to close TC, re-edit wincmd.ini, and reopen TC. That's a bit cumbersome. If the config interface of TC had show-drive options, one could do this on the fly. Mind you, I'm not trying to hide drives for security reasons, in which case none of the above options would be very good. I'm just trying to simplify the display to show only drives that are useful (documents, pictures, etc.), which also has the benefit of preventing erroneous drag/drop, deletes, etc.
Did you get DriveBarHide- to work for you?

I've just tried it and the drives I've specified are still visible in the button bar.

Does DriveBarHide need to be in a specfic location in wincmd.ini for this to work?

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

Post by *MVV »

CharlesF, you must place DriveBarHide parameter into [Configuration] section of wincmd.ini (every section starts with its name enclosed with square brackets and ends when next section begins) - usually it is the first section of file so if your first file line is [Configuration] you may put your parameter right after this line. Also please check if you're editing right wincmd.ini that your TC is actually uses (you may open actual file for editing via Configuration - Change Setting Files Directly menu item).
CharlesF
Member
Member
Posts: 104
Joined: 2007-09-06, 18:16 UTC

Post by *CharlesF »

MVV wrote:CharlesF, you must place DriveBarHide parameter into [Configuration] section of wincmd.ini (every section starts with its name enclosed with square brackets and ends when next section begins) - usually it is the first section of file so if your first file line is [Configuration] you may put your parameter right after this line. Also please check if you're editing right wincmd.ini that your TC is actually uses (you may open actual file for editing via Configuration - Change Setting Files Directly menu item).
Many thanks. That works.

Regards,
Charles
xtrips
Junior Member
Junior Member
Posts: 12
Joined: 2003-08-22, 09:24 UTC

Post by *xtrips »

Well, DriveBarHide works, but the hidden drives still show up if using the Drives combo box or the Alt+F1 and Alt+F2.
If you use the Allowed entry and omit the drive you want to hide then that does the trick and the drive does not show up anymore BUT it is not accessible from TC either so what's the point?
The only way to access that hidden drive then is to use the dreaded Windows Explorer.

So is there a solution to hide the drive completely in TC but still be able to make it appear if using cd drive: for example?

Thanks
Post Reply