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: Is there a way to hide files of only one particular extension/type?


04 Apr 2012   #11

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by writhziden View Post
Quote   Quote: Originally Posted by pxfragonard View Post
Thanks for a very elegant and simple solution. I take it s / d means subdirectory... very nice!
The /s means all files within the directory containing that extension will have the attribute applied. /d, as you guessed, means all directories and subdirectories will be checked for files with that extension. The directories themselves will not be hidden, but the files with that extension contained in the directories will have the hidden attribute applied or removed.
Thanks very much!

My System SpecsSystem Spec
.

04 Apr 2012   #12

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by EzioAuditore View Post
Quote   Quote: Originally Posted by pxfragonard View Post
Quote   Quote: Originally Posted by writhziden View Post
Another option is to put the batch file in the top level directory. You could make two batch files, one with a +h called hide.bat and one with a -h called unhide.bat for instance. In the top level, create the hide.bat file with this command:
attrib /s /d +h *.dop
and the unhide.bat file with:
attrib /s /d -h *.dop
These will hide/unhide all files in the current directory and every subdirectory within that directory.
Thanks for a very elegant and simple solution. I take it s / d means subdirectory... very nice!
Here's what they mean:

/S Processes files in all directories in the specified path.
/D Process folders as well.

You can type attrib /? in a command window to know as what switches does it support and what they do.

If you just type /? you'll get a list of all the commands with their respective brief explanation...

You can do wonders (as i like to say) by mastering the commandline.. :P
Mastering the command line is way beyond me now but it's exciting to know you can make computers do any logical series of things because it's just a machine. I'm going to try to understand and work toward that goal.
My System SpecsSystem Spec
04 Apr 2012   #13

Winbdows 7 ultimate x64 | Ubuntu 12.04 x64 LTS
 
 

Quote   Quote: Originally Posted by pxfragonard View Post
Quote   Quote: Originally Posted by EzioAuditore View Post
Quote   Quote: Originally Posted by pxfragonard View Post
Thanks for a very elegant and simple solution. I take it s / d means subdirectory... very nice!
Here's what they mean:

/S Processes files in all directories in the specified path.
/D Process folders as well.

You can type attrib /? in a command window to know as what switches does it support and what they do.

If you just type /? you'll get a list of all the commands with their respective brief explanation...

You can do wonders (as i like to say) by mastering the commandline.. :P
Mastering the command line is way beyond me now but it's exciting to know you can make computers do any logical series of things because it's just a machine. I'm going to try to understand and work toward that goal.
Even a 1000 miles journey begins with a single step. So, good luck exploring!
My System SpecsSystem Spec
.


04 Apr 2012   #14

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Thanks guys. Solved!!!
My System SpecsSystem Spec
04 Apr 2012   #15

Windows 7 Home Premium 64 Bit
 
 

You're welcome; that's excellent. Glad you learned a bit along the way, too.
My System SpecsSystem Spec
04 Apr 2012   #16

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

It's quite fascinating. I'm going to try to learn about the command line functions!
My System SpecsSystem Spec
Reply

 Is there a way to hide files of only one particular extension/type?




Thread Tools



Similar help and support threads for2: Is there a way to hide files of only one particular extension/type?
Thread Forum
File Extension Type - Unassociate Tutorials
Permissions error when opening a file with unknown extension type General Discussion
.lnk extension and shortcut type file General Discussion
How to hide some new extension file type? Customization
Chrome gives the option to hide any extension button? Browsers & Mail
Make explorer hide folders or hide files? General Discussion
File type Association (.exe, .jpg, ...) Add extension? General Discussion

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 10:27 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33