Is there a way to have Windows automatically hide any file that is dot prefixed (e.g. ".svn"), as it's done in Linux?

link|improve this question
feedback

2 Answers

up vote 2 down vote accepted

After some problems (the attrib command doesn't allow some wildcards) I came up with this line:

@for %%X in (.*.*) do attrib +h %%X

Just put it a Batch File (.bat) and it does the trick (for that directory).

If you want this for a few directies, just set it to run once a day on that directories.

Hope this is what you need.

link|improve this answer
feedback

Windows uses a hidden file property, it is pretty straightforward to run a script that would find any file with a dot prefix and assign it the hidden property (e.g. using attrib).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.