How To Protect Files And Folders In Windows 10

Introduction

The ability to protect a file or folder is an important feature of the Windows family. The Windows 10 feature that allows us to protect a file or folder is also quite helpful for protecting our documents from fraudsters.

If we happen to have to share our laptop with another person and we do not want to share our documents with him/her, we can safeguard our papers using a number of methods, including modifying a file or folder’s permissions, utilising command prompt (Cmd), and using any third-party programme.

This guide will demonstrate several methods for protecting your files and folders in Windows 10.

 

Method 1. By Changing the Permission of Files and Folders

Users can secure their documents by altering a file’s and folder’s permissions. To continue, adhere to the directions listed below.

Step 1
Navigate to a file or folder which you want to protect.
Step 2
Right-click on it and click on the “Properties” option.
Step 3
“Properties” Window will appear on the screen and click on the “Security” tab.
Step 4
Click on the “Edit” button
Step 5
When the “Permissions” window appears, choose “Group or user name” and then choose the “Read” and “Write” Deny option. To continue, click the “Apply” button.
Step 6
“Windows Security” windows will appear on the screen and click on the “Yes” button.

Step 7

Anyone attempting to open this restricted file or folder will now see a screen with the message “Access Denied Error” on it.

Method 2. Changing the File Format and Extension

Step 1 
Navigate to the folder which you want to hide or protect.
Step 2
Right-click on it and click on “Send to > Compressed (Zipped) Folder”.
Step 3
Right-click on it and change the name of the zip file with its extension to something else by rename option.
Step 4
Delete the original folder.

Approach 3. New Drive (Partition) Creation and Hide

To continue, adhere to the directions listed below.

Step 1

Start by reducing the current hard disc before creating a new one (volume).

 

Step 2

Then, hide the newly created hard drive (volume).

 

Method 4. Using Command Prompt (Cmd)

Users are able to secure their files and folders with the aid of the command prompt. To proceed, adhere to the directions below.

Step 1
From the Start menu, open the Run dialog box or you can Press the “Window + R” key to open the RUN window.
Step 2
Type “cmd” and click on the “OK” button.
Step 3
To lock a file or a folder, type the command given below into the command prompt and press the enter key.
cacls <File or Folder Path> /P everyone:n
For example: To lock the “NoidaChapter-C#Corner” folder, run the command as,
cacls O:\NoidaChapter-C#Corner /P everyone:n, where n represents the user’s access right to none.
Note:-
When you just wish to open a file or folder that has been locked using the command prompt (cmd), a warning message similar to the one below appears.

Conclusion

Any of the aforementioned procedures can be used to secure your Windows 10 files and folders.

I hope you found this information interesting. Learn more novel and wonderful details about Windows 10 by following C# Corner.

We appreciate you reading this article.

 

Submit a Comment

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

Subscribe

Select Categories