Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Hide all of a certain file type in a folder tree

30 Apr 2010   #1
Murdlih

Windows 7, Ubuntu, Windows XP, gOS
 
 
Hide all of a certain file type in a folder tree

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 System SpecsSystem Spec
.
30 Apr 2010   #2
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

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 System SpecsSystem Spec
30 Apr 2010   #3
Murdlih

Windows 7, Ubuntu, Windows XP, gOS
 
 

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 System SpecsSystem Spec
.

30 Apr 2010   #4
Powerpixel

Windows 7
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
attrib +h *.nfo /s
Quote   Quote: Originally Posted by WindowsStar View Post

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 System SpecsSystem Spec
30 Apr 2010   #5
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

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 System SpecsSystem Spec
30 Apr 2010   #6
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by 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"
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 System SpecsSystem Spec
30 Apr 2010   #7
Powerpixel

Windows 7
 
 

Quote   Quote: Originally Posted by WindowsStar View Post
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 System SpecsSystem Spec
30 Apr 2010   #8
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Thanks for the explanation.
My System SpecsSystem Spec
18 Oct 2011   #9
gth826a

Windows 7
 
 
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 System SpecsSystem Spec
19 Jul 2012   #10
FranklinBoyce

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

Quote   Quote: Originally Posted by WindowsStar View Post

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?
My System SpecsSystem Spec
Reply

 Hide all of a certain file type in a folder tree




Thread Tools




Similar help and support threads
Thread Forum
Is there a way to hide files of only one particular extension/type?
I use a program that saves a data file for every image that I process. It's called DxO Optics. This is unlike Photoshop Lightroom 4, which stores that info in a database. It's inconvenient to scroll thru these files which show up as icons. Is there a way to make files invisible by type? These ones...
General Discussion
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 despite me using the "attrib +h *.nfo /s" command previously. I foolishly hoped that also all future '*.wbk's would automatically be hidden too. Is there anything that I can do about it ...
Customization
How to hide some new extension file type?
Well I'm new here.. I found some file extensions (.modd and .moff) that I didn't want to be viewed in the folder, so I need to make them hidden. So, would someone here tell me how to make those two extension to be added to type of extension that automatically hidden by windows 7? thanks &...
Customization
File and Folder - Hide or Unhide
How to Hide or Unhide a File or Folder in Vista, Windows 7, and Windows 8 This tutorial will show you how to set the hidden attribute of a file or folder to be hidden or unhidden in Vista, Windows 7, and Windows 8. Through the File's or Folder's Properties Page 1.To Hide a File or...
Tutorials
Can't add a right mouse program option to the folder file type
In XP when I chose Folder options and then the File types tab, Folder was listed as a file type (Extension=None). I could select it, click the Advanced button and add a program to that file type. I would add the phrase CommandPrompt connected to the program cmd.exe. This then would allow me to...
General Discussion
File Name - Hide or Show for a Shortcut and Folder
Hide or Show File Names of Shortcuts and Folders in Windows 7 and Windows 8 This will show you how to hide the text label (file name) default desktop icons, shortcut icons, and folder icons in Windows 7 and Windows 8. EXAMPLE: Hide or Show Test of Desktop Icons, Shortcut, and Folder icons...
Tutorials


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 14:20.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App