Skip to main content

How To Lock A Folder Using Command Prompt NO Extra Software Needed

How to lock a Folder using Command Prompt :-
Command prompt is one of the most powerful application in 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, you can easily done your work on any windows OS with less effort.
Today I am going to show you how easily you can lock a folder using command prompt in few commands and if you did same thing GUI, it will takes more effort.
First open the command prompt (start menu > cmd ) with Run as administrator.                                                                                                                

















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.
                               







I create a Folder named rumytest in the D drive. If you want to view your folder then enter the commanddir on the same prompt.
Now on the same command prompt, enter the command
D:\>cacls D:\yourfoldername /e /p everyone:n

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.

Now if you want to remove the restrictions then enter the command
D:\>cacls D:\yourfoldername /e /p everyone:f
Here you only changed the last value. you replace the no value to false value.
If you are thinking How this trick is effective to you ? Suppose you have 2-3 users in your PC and you want to put the restrictions on your folder so other users are not able to seen your folder contents. in this condition it,s effective for you.
You can easily find out the User on your System with net user command on the command prompt. As you seen in below image my pc have four users named Administrator , Guest, Rumyittips and test.


Now suppose you want to put the restrictions for Rumyittips user then replace the everyone to Rumyittips.
D:\>cacls D:\yourfoldername /e /p Rumyittips:n
Enjoy your Folder restrictions without any software.
Hope you like my post.How to lock a Folder using Command Prompt. Please Share with others.













Comments

Popular posts from this blog

Counter Strike 1.6 can be played Online in Web Browser without any downloading!!!

Counter Strike was a very famous first-person-shooter game in the late 2000 century which was released on 8th November 2000. Here's the good news for those peoples who loved to play this game a lot because Counter Strike in now released on Online where you can play with either random players or with friends in a server only in web browser mode without downloading any big size  of data Isn't it cool Right?😎 How to play: Step 1:  First visit the website by clicking here .  Step 2:   Then create an account using Google, Facebook, etc through the  Authorization option . Step 3: Now Choose the server in which you want to play, Then click on connect. That's it!!! 👍 Screenshots

Reliance 3g Direct Trick With Unlimited Download By Tricks collector 4u

hello friends i m going to re post reliance direct trick working fine do that settings:-  Apn:-Smartwap proxys:- 1.Vod.rcom.co.in 2. 220.226.186.28 3. m.twitter.com port:-80 there is no homepage save the settings and enjoyyyy if u like my posts then plzzz like myy page :-  ( https://m.facebook.com/trickscollector4u?view=page ) ‪#‎ Admin‬   Akash raj