Is there a way to change the properties of a file extension?


  1. Posts : 50
    Windows 7 Home Premiun 64bit
       #1

    Is there a way to change the properties of a file extension?


    Is there a way to change the properties of a file extension? As an example: I would like "all" .txt files to be hidden.

    Thanks
      My Computer


  2. Posts : 72,049
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Rwmol,

    You could use the command below to set all .txt files on say the C: drive to be hidden. It will not hide any .txt files that are considered to be Windows 7 system files due to access denied though, but it will all other .txt files found on the C: drive.

    If you like, you could substitute C with any drive letter that you would like to hide .txt files in, or substitute C:\ with the full path of a specific folder that you would like to hide all .txt files in it and it's subfolders.

    File and Folder - Hide or Unhide

    ATTRIB +H "C:\*.txt" /S /D


    Hope this helps,
    Shawn
      My Computer


  3. Posts : 50
    Windows 7 Home Premiun 64bit
    Thread Starter
       #3

    Thanks Shawn. That's exactly what I needed.

    RM
      My Computer


  4. Posts : 72,049
    64-bit Windows 11 Pro for Workstations
       #4

    You're most welcome RM. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 05:23.
Find Us