Friday, May 1, 2020

How to hide your files and folders

Steps:
1) First of all, its better to keep all the personal files in a single folder on a separate drive (Please don't mixed them with system drive). Give a cunning name for the personal folder; something like "MSOCache" or "ServerLog" will go. Here folder name is "ServerLog".


2) Open 'Command Prompt' [Press 'Windows' + 'R' key from keyboard → 'Run' command window will come → Write down : 'cmd' in the 'Run' command box. → Click 'Ok' button → 'Command Prompt' window will come] and type:
attrib  +r  +a  +s  +h  "Path of the folder\*"  /s  /d 
[please note that after write down the command press Enter key (↲) from keyboard].
For a folder named 'ServerLog' in the E: drive, the command would be:
attrib  +r  +a  +s  +h  "E:\ServerLog\*"  /s  /d

Result:
All the contents of the 'ServerLog' folder will be hidden now. But the above command may not hide the folder itself.


To hide the folder itself, input the following command:
attrib  +r  +a  +s  +h  "Path of the folder"
For a folder named "ServerLog" in the E: drive, command would be:
attrib  +r  +a  +s  +h  "E:\ServerLog"


Similarly for hiding a file, the command to be inputted will be:
attrib  +r  +a  +s  +h  "Path of the File"
If File name is 'Book.docx' and Path of File is: "E:\Book.docx", then command is :
attrib  +r  +a  +s  +h  "E:\Book.docx" 
Even if someone searches for the concealed file/the concealed folder and its contents, anywhere on your Personal Computer, he/she surely won't get to it.
In this case, if any suspicious user tries to search "Book.docx" or the "ServerLog" folder on your Personal Computer, he is surely not get to it.
No search result for 'Book.docx'


No search result for 'ServerLog' folder

Unhide the File and Folder:
To access the folder and its contents you have to unhide them. To do so replace the '+' with '-' in the attrib commands.
attrib  -r  -a  -s  -h  "Path of the folder\*"  /s  /d


attrib  -r  -a  -s  -h  "Path of the folder"

If path is "E:\ServerLog", then commands are :
attrib  -r  -a  -s  -h  "E:\ServerLog\*"  /s  /d


attrib  -r  -a  -s  -h  "ServerLog"



Similarly to unhide a file, the command will be:
attrib  -r  -a  -s  -h  "Path of the file"
If 'Book.docx' file path is "E:\Book.docx", then the comman is:
attrib  -r  -a  -s  -h  "E:\Book.docx"


OR
No need to carry out unhiding the folder and its contents or unhiding the file, if you know the path.
Just type the path of the file/folder in the 'Address Bar' of the 'Explorer' window and it will get opened.



But the inputted path do gets stored sometimes in the 'Address Bar' history (See the screenshot below).



To delete the 'Address Bar' history, right click on the empty area of the 'Address Bar' and select the 'Delete History' option from the popped-up menu.
Please note that the address/path within the 'Address Bar' doesn't get highlighted or the 'Delete History option won't get displayed in the menu.



Notes:
1) The attrib command thus allows you to change the properties associated with file/folder.




2) Files/Folders accessed by you get stored as shortcuts in the "History" and "Recent" folder. Sometimes your super-hidden files and folders may be seen in Search results too due to this.
So run recent or 'shell:recent' (to open 'Recent' folder) and 'shell:History' (to open "History" folder) via "Run" and clear these auto-saved shortcuts.
3) If you are on 'Windows 7' and up , do also clear your recently accessed files from the 'Jump List' menu (Right click the program's icon on the 'Taskbar'. You will see the list of recently or frequently opened items, tasks etc. → To remove an item from the list, right click on the item, and then click 'Remove from this list' option).
4) Make sure that either one/both of the below mentioned settings is made in the 'Folder Option, or your super-hidden files and folders will be both easily visible and accessible:
a) Checked 'Hide protected operating system files (Recommended)' option.
b) Checked 'Don't show hidden files, folders or drives' option
(Run 'control folders' (without ' ') via 'Run' to open 'Folder Options' dialog).





-----------------------------------0-------------------------------






No comments:

Post a Comment