Windows does not use the dot-file convention for hidden files. However, many Windows applications (mostly opensource/cross-platform) use files and folders with this convention. How can I make Windows Explorer automatically hide these dot-files?
|
Edit: was meant to be a comment to the other fellow mentioning just ATTRIB +H |
|||||
|
|
Windows will hide files with the hidden or system flag. Or files may be hidden using ACL. Windows does not hide files based on filename. To explicitly have Windows to hide files by filename, you'll need to explicitly create the feature. Either a file system driver (it use to be common for viruses to have this "feature") or a shell extension hack will work in this case. On a side note, you can fake the feature by turning off "view file extensions" under Folder Options, since, to Explorer, a file that starts with a dot is a file with an extension, but no name. |
|||
|
I don't think there's a way to make it happen automatically, but you could try using the ATTRIB command to hide those files: ATTRIB +H Then make sure that you've configured Explorer to not show hidden files. |
|||
|
|
|
It is possible in C#, using System.IO.FileSystemWatcher. Code would be something like this. Just compile it and place it in the Start Up folder. But this code doesnt hide already existing files. So run first the code from Luke, and than this code. You need the System.IO and System.Security.Permissions
|
||||
|
|
|
Simple: In Windows Explorer
Done. PS Only checked on Windows 7 Professional. PPS I noticed your question asked for doing this automatically. Clearly this won't cut it, but maybe readers find it useful. |
|||
|
|