How to hidden files & folders in Windows


SUBMITTED BY: sahertian

DATE: June 20, 2016, 1:52 p.m.

UPDATED: June 20, 2016, 1:53 p.m.

FORMAT: Text only

SIZE: 2.0 kB

HITS: 893

  1. how to hidden files or folders in windows without using any software?
  2. maybe this is an old trick but still good and works :)
  3. this trick will keep your files and folders hidden even you have choose option "show hidden files and folders" in "folder option" :p
  4. [x]
  5. first write this script and save as open.bat
  6. attrib -a -s -h <folder or file to hidden>
  7. attrib -a -s -h open.bat
  8. attrib -a -s -h close.bat
  9. second write this script and save as close.bat
  10. attrib +a +s +h <folder or file to hidden>
  11. attrib +a +s +h open.bat
  12. attrib +a +s +h close.bat
  13. [x]
  14. script explaination
  15. attrib : displays or changes file attributes
  16. a : archive file attribute
  17. s : system file attribute
  18. h : hidden file attribute
  19. + : sets an attribute
  20. - : clears an attribute
  21. attrib +a +s +h <folder or file to hidden>
  22. you can put your files or folders name there
  23. if you hidden a file dont forget to write down the file extention to
  24. example
  25. attrib +a +s +h pic.jpg <-- hidden file name
  26. attrib +a +s +h folderz <-- hidden folder name
  27. what about this two files?
  28. attrib +a +s +h open.bat <-- hidden open.bat
  29. attrib +a +s +h close.bat <-- hidden close.bat
  30. attrib -a -s -h open.bat <-- show open.bat
  31. attrib -a -s -h close.bat <-- show close.bat
  32. why we put this two files into the script to?
  33. we must hidden this files to or anyone will open your hidden stuff
  34. if you have many folder to hide you can add into the script like this
  35. add this into close.bat
  36. attrib +a +s +h folder1
  37. attrib +a +s +h folder2
  38. attrib +a +s +h folder3
  39. dont forget to add into open.bat to
  40. attrib -a -s -h folder1
  41. attrib -a -s -h folder2
  42. attrib -a -s -h folder3
  43. [x]
  44. how to show it again?
  45. you must have WINRAR to show your hidden stuff
  46. open WINRAR and go to folder or drive where you hidden your stuff
  47. WINRAR will show all hidden files or folders include open.bat and close.bat
  48. click open.bat to show all your hidden stuff
  49. Thank you :)

comments powered by Disqus