Creating invisible folder with batch

user2065810 picture user2065810 · Feb 13, 2013 · Viewed 13.1k times · Source

How to use

mkdir or md

but make the folder invisible...

Answer

Vicky picture Vicky · Feb 13, 2013

You need the attrib command to set the "hidden" attribute, assuming that when you say "invisible" you actually mean what Windows calls "hidden":

mkdir foo
attrib +h foo /s /d