A way to hide only some hidden files

Features wanted...
Post Reply
tgrand
Posts: 17
Joined: 03 Oct 2008 20:23

A way to hide only some hidden files

Post by tgrand »

I'm looking for a way to hide only some hidden files. Normally, I want to see hidden files everywhere. However, in one particular folder, there's a hidden file called desktop.ini that HAS to exist there, but I would prefer not to see it (in the list, at least - I don't care about the tree). I wouldn't mind hiding all hidden files in this folder, or all files called desktop.ini everywhere.

If Folder View Settings included the Show Hidden Files and Folders setting, I would be all set, but it doesn't. I wonder if there is another way...

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: A way to hide only some hidden files

Post by serendipity »

How about visual filter? adding the filter "|!desktop.ini" would hide desktop.ini, similarly for the folder you want to hide. Thats the only way i can think of as of now.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: A way to hide only some hidden files

Post by fishgod »

Visual-filter is a nice, simple and fast idea, but when you use the feature in daily-use you need to reset the filter after using it for your own purposes, so I found out another solution for this, but it's way more complicated.

Display hidden files: on
Display system files: OFF

Give your desktop.ini-files the (S)ystem-attribute and you do not see them anymore, however this is not the best option, because S-attribute is used very often if you give folders custom icons with windows-functions, but the folder need only either S or (R)eadonly-attribute to parse the desktop.ini in it. (both attributes won't hurt anybody but one of them must be present)
So while I want to have S-attribut for "Document and settings" or the "windows"-folder to show them in a different color (when system items are shown), I don't want to have all folders with custom icons shown in red (or get hidden), therefore I allways replace the S-attribute with the R-attribute for custom-folders, when you do so, you can hide all items with S-attribute :)

Thats my way of solution, maybe this helps a little bit.

You don't need to replace all attributes manually, there are possibilies to do this with batch-files or xy-scripting, if this is a solution for you, I can help you with the replacement, but maybe there are better ideas out there, my favorite would be to store these "desktop.ini"-informations in a alternative data-stream of the folder, but I think this would never be possible...
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: A way to hide only some hidden files

Post by TheQwerty »

It would be a much nicer solution if Don gave us the ability to change attributes via script (without calling attrib, etc.), but I'm sure that'll happen eventually.

What I do for desktop.ini and Thumbs.db at least is to apply a color filter that is very close to the background color of the list in Browse Mode. They're obviously still there but I don't get as easily distracted by them.

I'm not sure I'd use an option to hide files matching a pattern, but I do see some use cases.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: A way to hide only some hidden files

Post by fishgod »

TheQwerty wrote:It would be a much nicer solution if Don gave us the ability to change attributes via script (without calling attrib, etc.), but I'm sure that'll happen eventually.
I requested that allready :)

See here: http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=3397
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: A way to hide only some hidden files

Post by TheQwerty »

fishgod wrote:
TheQwerty wrote:It would be a much nicer solution if Don gave us the ability to change attributes via script (without calling attrib, etc.), but I'm sure that'll happen eventually.
I requested that allready :)

See here: http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=3397
I knew someone did.. In fact I thought I had requested it as well somewhere.

noir
Posts: 113
Joined: 26 Dec 2008 00:38

Re: A way to hide only some hidden files

Post by noir »

i also requested it, need a folder / file filter, i think don uses windows XP and it doest really suffer from this problem (system doest have desktop.ini files all over or useless junction folders) but in vista / 7 / 2k8 these files and extra folders are really annoying, and for me who needs to have all files shown , it would be really nice to hide the ones you dont need (like junction folders , desktop.ini ..etc)

this would need to take effect in both tree and pane view.

also .... where is don he hasn't updated in awhile, usually he is always doing something here.

jjk
Posts: 202
Joined: 10 Oct 2007 20:11
Location: Paris

Re: A way to hide only some hidden files

Post by jjk »

also .... where is don he hasn't updated in awhile, usually he is always doing something here.
see http://www.xyplorer.com/xyfc/viewtopic. ... 563#p31563
We are all waiting XY 8.00 now, with pleasure....

ale
Posts: 127
Joined: 19 Feb 2009 23:23
Location: Italy

Re: A way to hide only some hidden files

Post by ale »

I don't have this need but we might call attrib with the hstart tool to change attributes and avoid a console window. Something like this to make an example

Code: Select all

run "<curpath>\hstart.exe /NOCONSOLE ""C:\WINDOWS\system32\attrib.exe +R <curpath>\test.txt""";

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: A way to hide only some hidden files

Post by paul0 »

TheQwerty wrote:I'm not sure I'd use an option to hide files matching a pattern, but I do see some use cases.
I also like to have an option to filter out (hide) some files/folder matching some pattern.

We have filter option to show some files/folder matching a pattern. Can we a new option to let some files/folder always hidden unless we remove the specific pattern?

admin
Site Admin
Posts: 65331
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A way to hide only some hidden files

Post by admin »

paul0 wrote:
TheQwerty wrote:I'm not sure I'd use an option to hide files matching a pattern, but I do see some use cases.
I also like to have an option to filter out (hide) some files/folder matching some pattern.

We have filter option to show some files/folder matching a pattern. Can we a new option to let some files/folder always hidden unless we remove the specific pattern?
You can already define negative visual filters by prefixing a ! ...

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: A way to hide only some hidden files

Post by paul0 »

admin wrote: You can already define negative visual filters by prefixing a ! ...
Thanks, Don. I prefer a default filter to apply all the tabs, panes, and tree such that those files/folders are hidden in the xyplorer. If we use filter, we need manual set for tabs, and "!<pattern>" will show on tab name.

admin
Site Admin
Posts: 65331
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: A way to hide only some hidden files

Post by admin »

paul0 wrote:
admin wrote: You can already define negative visual filters by prefixing a ! ...
Thanks, Don. I prefer a default filter to apply all the tabs, panes, and tree such that those files/folders are hidden in the xyplorer. If we use filter, we need manual set for tabs, and "!<pattern>" will show on tab name.
Ah I see, interesting idea. Something like the color filter for visibility. Maybe later...

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: A way to hide only some hidden files

Post by paul0 »

admin wrote: Ah I see, interesting idea. Something like the color filter for visibility. Maybe later...
Yeah. It should work as a global filter.

Post Reply