Hide all of a certain file type in a folder tree

Murdlih

New member
Local time
2:46 PM
Messages
8
Hey there. I have a media library with, surprisingly enough, media in it! Videos to be exact. Each of the sub-folders have in them videos as well as .nfo files for displaying data awesomeness in the likes of XBMC. However, I do not like the way it makes my folders look when I browse to them in explorer.

Is there a way to hide all my *.nfo files only in the Video folder and subfolders?
 

My Computer

OS
Windows 7, Ubuntu, Windows XP, gOS
Open an elevated command prompt and navigate to your video directory type:

attrib +h *.nfo /s

This will hide the files, however if you have show hidden files turned on they will still show up.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Thanks a bunch for the quick reply. This has got to be one of the most helpful forums I have ever been a part of. Everyone here seems so nice and friendly and helpful. Kudos to sevenforums!
 

My Computer

OS
Windows 7, Ubuntu, Windows XP, gOS
attrib +h *.nfo /s
This will hide the files, however if you have show hidden files turned on they will still show up.​
There exist an context menu extension (right mouse click menu) "Right-Click Extender" that integrates two additional options: "Show hidden files and folders" and "Hide hidden files and folders". With this extension you easily can switch between these two views.
 

My Computer

OS
Windows 7
Murdlih; you are most welcome. Everyone here is very nice and very helpful. We all enjoy learning so it is fun for everyone.

I forgot to mention if you need to see the files you just need to change the + to a - and that will make them visible again.

attrib -h *.nfo /s
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Powerpixel;711352There exist an context menu extension (right mouse click menu) "[URL="http://www.thewindowsclub.com/right-click-context-menu-extender-for-windows-7-released" said:
Right-Click Extender[/URL]" that integrates two additional options: "Show hidden files and folders" and "Hide hidden files and folders". With this extension you easily can switch between these two views.

That is nice, will it change let you make changes like *.ext? From the context menu? Does it support applying to subfolders?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
will it change let you make changes like *.ext? From the context menu? Does it support applying to subfolders?
No. It's the same function like going through "Organize" -> "Folder and search options" -> "View" -> "Hide files and folders" -> Show/don't show "hidden files, folders, and drives".
This means: Not for single file extensions, not for single files, not for single folders or subfolders, but for whole PC.​
 

My Computer

OS
Windows 7
Thanks for the explanation.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg
Thank You!

It took me 60 minutes to find a website (this one) that had the solution to my problem, and 30 seconds to fix it...

A Big Thanks!
 

My Computer

OS
Windows 7
Show all of a certain file type in a folder tree

attrib +h *.nfo /s

Thank you for this command. It allowed me to hide all *.wbk files on my drive. I now wonder which command I need to make them visible again if need should arise.

Many thanks!

2)
How to automatically hide all of a certain file type in a folder tree?

I ask because I have just noticed that when I open WORD files that the newly generated WBK-files are visible. I foolishly hoped that they would automatically be hidden too. Is there anything that I can do about it without repeating the manual command prompt all the time?
 
Last edited:

My Computer

OS
Windows 7 Professional x64
reverse

I know it's old, but to reverse the hidden files run the same command with a minus instead of a plus,
which equals "clear attributes". Presto.
 

My Computer

Computer type
PC/Desktop
OS
win10 64 bit
Back
Top