Blogger Widgets

About Ash Hacker

My photo
I am a social-techno-learner which believes in its own efficiency first and then implements with the suggestions of my strong and enthusiastic Team which helps me takes everything into its perfection level.

Thursday 19 January 2012

Restrict Access to folder/file using cmd



You may have seen may software to lock the folder/files and you may also have seen batch programs to do the same. Today I am going to share with you a Basic Dos Command which will help you to Restrict Access to Folder/File. The only thing you need for this is the Administrator Access on Windows Machine.
Follow the Below Given Steps to restrict access:

1.) Open Command Prompt in Windows
 2.) Type the Following Command :
   cacls "<path of file/folder>" /E /P everyone:n
   For example: calcs "C:\users\Administrator\Desktop\Lock.txt" /E /P everyone :n
3.) Remember that path of file/folder should be in double quotes (""). You will get the following message on Success
"Processed File: C:\users\Administrator\Desktop\Lock.txt"
4.) Now when you try to open the File/Folder You will get the message "Access is denied".

Now to Unlock Folder/File and to give it the full access, follow below given steps:

1.) Open Command Prompt in Windows
2.) Type the Following Command :
   cacls "<path of file/folder>" /E /P everyone:f
   For example: calcs "C:\users\Administrator\Desktop\Lock.txt" /E /P everyone :f
3.) Remember that path of file/folder should be in double quotes (""). You will get the following message on Success
"Processed File: C:\users\Administrator\Desktop\Lock.txt"
4.) You have successfully unlocked the file/folder
 
 

No comments:

Post a Comment

WEL-COME

You Are Welcome Heartly.......
Blogger Widgets