When we talk about security and privacy then we never compromise with these two things. Because nowadays the first thing we talk about that is Security and Privacy. In the previous article, you have seen about How to create an Undeletable or Unrenamable folder in window pc. These both articles help you to protect your private files and folders. These both are protecting you with unauthorized access and unwanted file viewers. We are using third-party software for protecting our files from this kind of activity. But in this guide of making an inaccessible folder, we are not going to use any applications.
Before doing these you have to create a folder at safe location on your hard disk. Keep your files and folder which you want to make inaccessible in your windows pc. Don’t make that folder in your root drive it may be harm operating system. Making this folder is going to help you to protect your form with the help of windows inbuilt feature. This task is not time taking it’s easy to establish with the help of windows command prompt.
Read More:- List of Top Windows Run Commands: You should know.
Make a folder inaccessible folder in windows pc
Step1.
Make a folder name of ‘secret’ any safe place on your hard disk and put your files in that folder.
Step2.
Press windows + R key and type cmd and hit enter.
Step3.
Type the following syntax.
cacls <folder_name with path> /e /c /d %username%
Example:-
cacls i:\secret /e /c /d %username%
Point to Note.
/D user Deny specified user access.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
Step4.
Go to the directory and try to open that folder it will show error message as shown below.
Make that folder accessible folder.
Step1.
Press Windows+R key, type cmd and hit enter.
Step2.
cacls <folder_name> /e /c /g %username%:f
Example:-
cacls i:\secret /e /c /g %username%:f
You will get that folder in normal form. Make sure that the file system is NTFS. Otherwise, this technique won’t work.
Keep in your mind that almost everyone can make it accessible who has little knowledge or familiar to windows operating. They can access or make visible to your files easily in folder option menu from windows explorer.