Many cross platform tools use the unix convention of prefixing directory names with a period to indicate they are meta directories and should not be included in file listings and directory searches. Is there a way to configure Windows so that it treats directories with a leading period as if they had the 'hidden' attribute applied?
migrated from stackoverflow.com Apr 29 '11 at 18:05
|
I think the reason you can't do this at all is because in Windows, a lone period means "current directory". So .\..\SiblingFolder means exactly the same as ..\SiblingFolder. |
|||||
|
|
One thing you can do is hide them manually, i do this for my home folder that has alot of files and directories that begin with dot and with underscore, the last character used for VIM. Open a powershell and execute this two lines:
|
|||
|
|
|
You can't do that by normal way. Perhaps with some software... Below, you can see an way - not the best, but to do manually for your particular case. For both cases, you must hide files with hidden attribute in Windows Explorer > Tools > View mode:
|
||||
|
|
|
You can't do this in general in Windows. Hidden files in Windows are determined by an attribute rather than a name convention. That's just set in stone. The best you can get is to use the GNU tools, e.g. |
|||
|
|
|
I don't think there's any way to do this -- Windows doesn't even let you name files like that from within Explorer (you need the command prompt), so I don't think it would be very friendly toward treating them as hidden :( |
|||
|
|