Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to hide files with a certain extension? I'm using Windows Vista and don't want to see pyc files in the Windows file explorer. It would be nice to reduce the clutter. Thanks

share|improve this question
add comment

migrated from stackoverflow.com Dec 14 '12 at 5:29

This question came from our site for professional and enthusiast programmers.

1 Answer

It's very easy, and not depend on your python file or not.

Open command prompt, type the disk letter that you want to hide all pyc file. For example, type D:. and you will see command prompt will move to D drive.

After that, type this line:

attrib +h *.pyc /s

if you want to view again those file:

attrib -h *.pyc /s

if you don't want to hide all pyc file in all drive, after you move to one drive, you can use cd command to move into folder you like and type above command. For example:

cd Project/Python Project/Toy Project

You can replace pyc in above command with any file type you want. And, you must turn off "Show hidden file and folder" in Folder Option. If not, I'm pretty sure that no trick will help you.

Hope this help :)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.