Now Command prompt(CMD) is one of the most powerful application in windows OS.In Another Words Command Prompt is the heart of windows OS. If you have knowledge about Command prompt means you have knowledge about Windows OS in proper way. If you are familiar with command,Then you can easily done your work on any windows OS with less effort. Here I wanna to show you how easily you can lock a folder using command prompt.
Step 1 :- Firstly,Open the command prompt (start menu > cmd ) with Run as administrator.
Step 2 :- Now I want to create a folder in D drive, so on the command prompt Change your Directory to D drive and create a folder with mkdir command.
Step 3 :- I create a Folder named TechTrick in the D drive. If you want to view your folder then enter the command dir on the same prompt.
Step 4 :- D:\>cacls D:\TechTrick /p everyone:n
Step 5 :- Now when you open a Folder, you will get the access denied error. To open this folder you need a administrator permission and click on the continue.
Step 6 :- Now if you want to know what that small command did, Right-click on the Folder > Properties > Security tab. here you will see the Deny permission to everyone.
Step 7 :- D:\>cacls D:\TechTrick /p everyone:f
Step 8 :- Here you only changed the last value. you replace the no value to false value.
Enjoy your Folder restrictions without any software.