Tuesday, April 14, 2009

Hide Folders and Files Using System File Attribute



  1. Open a Command Prompt window. (Start->All Programs->Accessories->Command Prompt). For some files, this must be run with Administrator privileges . In that case, right click on Command Prompt, and click “Run as administrator.”
  2. By default it should already open in the "C:\Users\[your_username]" directory.
  3. Type "attrib +S +H AppData" to hide the AppData directory.
  4. Type "attrib +S +H ntuser.dat.LOG1" to hide ntuser.dat.LOG1.
  5. Type "attrib +S +H ntuser.dat.LOG2" to hide ntuser.dat.LOG2.
  6. Look at your user directory in Windows Explorer and they should not be showing anymore. (A refresh might be required to see the changes)

If you ever need to undo this, simply substitute the "+S +H" with an "-S -H" in the instructions above.