How to lock a Folder using Command Prompt


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.


Here Is the Steps To 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.



For References :-




I hope you enjoyed this article.



Sharing is caring

google
linkedin

About Author

Akash is a co-founder and an aspiring entrepreneur who keeps a close eye on open source, tech giants, and security. Get in touch with him by sending an email (akashchugh1994@gmail.com).


You may also like :-




Leave a Comment

Your email address will not be published. Required fields are marked *




Stay Connected

Popular Posts

Get Latest Stuff Through Email


Who Should Read TechTrick?

All the tricks and tips that TechTrick provides only for educational purpose. If you choose to use the information in TechTrick to break into computer systems maliciously and without authorization, you are on your own. Neither I (TechTrick Admin) nor anyone else associated with TechTrick shall be liable. We are not responsibe for any issues that caused due to informations provided here. So, Try yourself and see the results. You are not losing anything by trying... We are humans, Mistakes are quite natural. Here on TechTrick also have many mistakes..