Do you want to hide some content from your parents or anyone else? Use this trick. Because Now a days mostly everyone knows How to show hidden folders in PC. Learn How to Deny all permissions of a folder.
Step 1: Open Windows Command Prompt.
Step 2: Change directory to target folder. (if target folder is at Desktop, type cd Desktop)
Step 3: type cacls folder_name /e /p everyone:n
Congratulations...!!! All permissions of that folder has been denied.
Here I am giving an example.
There is a folder in E: drive named "Personal".
Open command prompt and type E: to change directory to E drive.
Now type cacls Personal /e /p everyone:n
You will get a command- processed dir: E:\Personal
Now click on Personal folder.
We get a popup saying you don't currently have permission to access this folder.
Now you can't open this folder, can't delete/copy/move/rename.
If you click on continue.
Now what? Surely your parents will click on close. (I assume they don't know how to change permissions of a folder).
Congratulations...!!! Your content in this folder is safe now.
Step 4: How to gain permissions again.
This time type cacls Personal /e /p everyone:f
Now you have got all permissions of this folder. You can open this folder (when no one is at home :p)
Understand these commands-
cd- Change Directory
cacls- Change Access Control Lists
/e- edit
/p- permissions
everyone- every user
f-full
n-none
You can use it on pendrive too. But your pendrive must has NTFS File System. If your pendrive has FAT/FAT32 file system, you can convert it to NTFS. Plug your pendrive, Click on format, Choose NTFS file system, and Format.
Now you can use it on your pendrive too.
Some versions of windows show "cacls is now deprecated". Then you have to use icacls. Try this code- this might works for icacls-
icacls foldername /grant everyone:(OI)(CI)N (for none access)
icacls foldername /grant everyone:(OI)(CI)F (for full access)