Wednesday, 14 August 2013
restrict access folder using cmd
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 "" /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 "" /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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment