how to hidden files or folders in windows without using any software?
maybe this is an old trick but still good and works :)
this trick will keep your files and folders hidden even you have choose option "show hidden files and folders" in "folder option" :p
[x]
first write this script and save as open.bat
attrib -a -s -h <folder or file to hidden>
attrib -a -s -h open.bat
attrib -a -s -h close.bat
second write this script and save as close.bat
attrib +a +s +h <folder or file to hidden>
attrib +a +s +h open.bat
attrib +a +s +h close.bat
[x]
script explaination
attrib : displays or changes file attributes
a : archive file attribute
s : system file attribute
h : hidden file attribute
+ : sets an attribute
- : clears an attribute
attrib +a +s +h <folder or file to hidden
you can put your files or folders name there
if you hidden a file dont forget to write down the file extention to
example
attrib +a +s +h pic.jpg <-- hidden file name
attrib +a +s +h folderz <-- hidden folder name
what about this two files?
attrib +a +s +h open.bat <-- hidden open.bat
attrib +a +s +h close.bat <-- hidden close.bat
attrib -a -s -h open.bat <-- show open.bat
attrib -a -s -h close.bat <-- show close.bat
why we put this two files into the script to?
we must hidden this files to or anyone will open your hidden stuff
if you have many folder to hide you can add into the script like this
add this into close.bat
attrib +a +s +h folder1
attrib +a +s +h folder2
attrib +a +s +h folder3
dont forget to add into open.bat to
attrib -a -s -h folder1
attrib -a -s -h folder2
attrib -a -s -h folder3
[x]
how to show it again?
you must have WINRAR to show your hidden stuff
open WINRAR and go to folder or drive where you hidden your stuff
WINRAR will show all hidden files or folders include open.bat and close.bat
click open.bat to show all your hidden stuff
Thank you :)