4 best ways to hide or protect a Windows folder, without installing additional software

There are many ways to protect sensitive folders and data, such as hiding them in hard-to-find places, storing them in removable storage devices and putting them in safes, and storing them in the cloud with strong passwords. But if you have to access them frequently, you will have to leave them on your computer, even in the most accessible places. In that case, a more effective way to protect folders is to hide them, set a password, or encrypt them.

In the article below, WebTech360 will guide you through 5 ways to protect folders on Windows:

1. Hide any folder using Windows built-in option

Windows has a built-in tool that allows you to hide folders that you want to hide. This is a low-security method and should not be used to protect important data. You can also use this tool to hide folders that you find annoying.

How to do as follows:

  1. Go to File Explorer and find the folder you want to hide.
  2. Right-click on the folder and select Properties (on Windows 11, select Show more options > Properties )
  3. Click on the "Hidden" box and press OK

4 best ways to hide or protect a Windows folder, without installing additional software

To view the files again, all you need to do is on the Folder Options window , uncheck the items Show hidden files, folders, and drives and Hide protected operating system files . Or you can click on the " Hidden items " box in the View menu of File Explorer.

4 best ways to hide or protect a Windows folder, without installing additional software

2. Turn a normal folder into a hidden system folder using Command Prompt

Command Prompt is a command-line interpreter application available in most Windows operating systems. It is used to execute entered commands. Most of these commands automate tasks through scripts and batch files, perform advanced administrative functions, and troubleshoot or resolve certain types of Windows issues.

Command Prompt's official name is Windows Command Processor, but it's sometimes referred to as the command shell, or even by its file name, cmd.exe.

Turning a regular folder into a hidden system folder using Command Prompt is a bit more difficult than the previous method, so of course the security will be higher. To do it successfully, you will have to manipulate a bit with the Command Prompt command line window.

How to do as follows:

  1. Press Win + R to open Run then type cmd and Enter to open Command Prompt
  2. Type the following command into Command Prompt:
    attrib +s +h “C:\Users\Quantrimang\Desktop\Bi Mat”
  3. Replace C:\Users\Quantrimang\Desktop\Bi Mat with the path to the folder you want to hide. For example: D:\TaiLieuTiengNhat
  4. After completing the command, press Enter and the folder will be hidden. Even if you unhide it in Folders Options, it cannot be found.
  5. To unhide, you need to run the above command again but replace the " + " with a " - "

4 best ways to hide or protect a Windows folder, without installing additional software

3. Encrypt files or folders without installing additional software

Encryption is an effective way to protect your files. Microsoft includes an encryption tool in Windows that makes it easy to protect your data.

How to do as follows:

  1. Right click on the file or folder to encrypt and select Properties
  2. Click the Advanced button
  3. Click on Encrypt Contents to Secure Data and then click OK
  4. Click Apply to finish
  5. If you encrypt a file, the system will prompt you to encrypt both the file and its parent directory.
  6. After encryption, the file or folder will turn green.

4 best ways to hide or protect a Windows folder, without installing additional software

The only downside to this method is that it ties the encryption to your user account. This means that other accounts on the same computer will not be able to open the files or folders you encrypted. However, if you share an account, this method will not work.

How to Backup Locked Folder Encryption Key in Windows 10

Follow these steps to manually back up keys for encrypted folders:

1.  Press Windows key + R to open the Run command dialog box , type certmgr.msc , and then select OK.

4 best ways to hide or protect a Windows folder, without installing additional software
certmgr.msc in the Windows Run box

2. In the left pane, go to Personal store > Certificates .

4 best ways to hide or protect a Windows folder, without installing additional software
Personal store > Certificates in Windows Certificate Manager

3. Select all certificates for Encrypting File System .

4 best ways to hide or protect a Windows folder, without installing additional software
Encrypting File System in Windows Certificate Manager

4. Right-click on the selected files, then go to All Tasks > Export .

4 best ways to hide or protect a Windows folder, without installing additional software
All Tasks > Export in Windows Certificate Manager

5. Start the Certificate Export Wizard by selecting Next on the first screen.

6. Keep the default values ​​selected, then click Next again.

4 best ways to hide or protect a Windows folder, without installing additional software
Certificate Export Wizard export file format

7. Check the box next to Password to enable passwords and fill in the text fields below. Select Next.

4 best ways to hide or protect a Windows folder, without installing additional software
Certificate Export Wizard security screen

8. Choose where to save the PFX file and name the file.

9. Select Next to review the information you have provided and select Finish to complete the export.

4 best ways to hide or protect a Windows folder, without installing additional software
Complete the Certificate Export Wizard review screen

10. Select OK on the export success prompt. If you need to use this certificate, simply open the certificate from wherever you saved it in step 9 and follow the on-screen prompts.

4. How to hide and access hidden folders using .BAT file

1. Before you begin, you must create a folder to store the folders that need to be protected. To do this, simply create a folder in the usual way and give it any name.

4 best ways to hide or protect a Windows folder, without installing additional software

2. Navigate to the folder you just created, open it and create a new Text Document by right-clicking on any empty space in the folder, selecting New => Text Document.

4 best ways to hide or protect a Windows folder, without installing additional software

3. Open the Text Document file you just created, copy and paste the code below into it:

cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

Note:

In the above code, replace PASSWORD_GOES_HERE with the password you want to set. Finally, in Save as type select All type , name the file locker.bat .

4 best ways to hide or protect a Windows folder, without installing additional software

4. Now you can delete the original text file.

4 best ways to hide or protect a Windows folder, without installing additional software

5. Next, double-click on the locker.bat file to open it. This will create a new folder named Private . This Private folder is where you can store all important files and folders....

4 best ways to hide or protect a Windows folder, without installing additional software

6. After moving the data that needs to be secured into the Private folder, double-click on the locker.bat file .

Immediately a command line dialog box will appear asking if you agree to hide this folder, just type “Y” and press ENTER.

4 best ways to hide or protect a Windows folder, without installing additional software

7. Once done the Private folder will disappear.

4 best ways to hide or protect a Windows folder, without installing additional software

8. If you want to access the Private folder, double-click on the locker.bat file and enter the password you set in the command line window and press ENTER.

4 best ways to hide or protect a Windows folder, without installing additional software

How to view files again

To view the files again, all you need to do is on the Folder Options window, uncheck the Show hidden files, folders, and drives and Hide protected operating system files .

4 best ways to hide or protect a Windows folder, without installing additional software

Then a warning window will appear on the screen as shown below:

4 best ways to hide or protect a Windows folder, without installing additional software

To open the Folder Options window as well as to hide or show files and folders on Windows 7, 8 and 10, please refer to the steps here .

If you accidentally forget your password

If you accidentally forget your password or if you want to change it, all you need to do is right-click on the locker.bat file and select Edit and proceed to change the password.

4 best ways to hide or protect a Windows folder, without installing additional software

The above method only helps protect your sensitive files from prying eyes. People who know this trick or have knowledge of computers can easily open the files you have hidden, then you need a real password setting tool for the folder. You can see the 3 software that WebTech360 has introduced such as: Wise Folder Hider , Folder Guard , Secure Folder

Some frequently asked questions

How to lock a folder in Windows 10 to prevent deletion?

One option is to right-click the folder and select Properties > Security > Advanced > Disable Inheritance > Convert inherited permissions into explicit permissions on this object . Then, select a user from the list, select Edit > Show advanced permissions > Type > Deny and check the box next to Delete.

How to hide a folder on PC and lock it yourself in Windows 10?

To hide files and folders in Windows 10, right-click the folder and select Properties > General > Hidden > Apply > OK . While you can prevent hidden files from showing up by adjusting your File Explorer view, other users can easily show hidden items by changing this setting. A third-party tool to add password protection and hide folders more effectively.

Tags: #System

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Fixing Background Processes High CPU Usage on Windows 11

Fixing Background Processes High CPU Usage on Windows 11

Struggling with high CPU usage from background processes on Windows 11? Discover proven fixes to optimize performance, boost gaming, and reclaim your PC

How to Use a Windows 10 Key to Activate Windows 11

How to Use a Windows 10 Key to Activate Windows 11

Discover how to seamlessly activate Windows 11 using your existing Windows 10 key. This comprehensive guide covers eligibility, steps, troubleshooting, and tips for a smooth upgrade. Save time and money today!

How to Use Windows 11 Sound Mixer Per App

How to Use Windows 11 Sound Mixer Per App

Discover how to use the Windows 11 sound mixer per app to customize audio levels for each application. Step-by-step guide to balance sounds, fix imbalances, and enhance your listening experience effortlessly.

Troubleshooting Windows 11 Chkdsk Stuck at 10% or 100%

Troubleshooting Windows 11 Chkdsk Stuck at 10% or 100%

Struggling with CHKDSK stuck at 10% or 100% on Windows 11? Discover quick, effective troubleshooting tips to resolve the issue and get your system running smoothly again. Step-by-step guide inside.

Troubleshooting Java Web Start Errors on Windows 11

Troubleshooting Java Web Start Errors on Windows 11

Struggling with Java Web Start errors on Windows 11? This comprehensive guide walks you through common issues, step-by-step fixes, and tips to get your apps running smoothly without frustration. Discover proven solutions today.

How to Use Windows 11 Disk Cleanup Utility

How to Use Windows 11 Disk Cleanup Utility

Discover how to use the Windows 11 Disk Cleanup Utility to reclaim storage space quickly. Step-by-step guide with tips for optimal performance and freeing up GBs of data.

How to Change Power Sleep Settings in Windows 11

How to Change Power Sleep Settings in Windows 11

Discover step-by-step guidance on how to change power sleep settings in Windows 11. Optimize your PC

Best Security Settings for Microsoft Edge in 2026

Best Security Settings for Microsoft Edge in 2026

Discover the best security settings for Microsoft Edge in 2026 to protect your privacy and data. Optimize your browser with expert tips for ultimate online safety.

How to Bypass Windows 11 Activation for Testing

How to Bypass Windows 11 Activation for Testing

Discover ethical ways to bypass Windows 11 activation for testing purposes. Learn step-by-step guides, tools, and tips to test features without commitment, ensuring compliance and security. Perfect for developers and IT pros.

Best Ways to Optimize Windows 11 Background Processes

Best Ways to Optimize Windows 11 Background Processes

Discover the best ways to optimize Windows 11 background processes for smoother multitasking, faster boot times, and improved battery life. Follow our expert tips to tame resource-hungry apps and boost your PC

How to Use Windows 11 Emoji and GIF Keyboard

How to Use Windows 11 Emoji and GIF Keyboard

Discover how to effortlessly use the Windows 11 Emoji and GIF Keyboard to add flair to your messages. Step-by-step guide with tips for seamless integration in chats, emails, and more.

How to Fix GPT Disk Error During Windows 11 Installation

How to Fix GPT Disk Error During Windows 11 Installation

Struggling with GPT disk errors during Windows 11 installation? Discover proven, step-by-step fixes to resolve this common issue quickly and get your PC up and running smoothly. No tech expertise required!

How to Fix Windows 11 Fan Speed Control Not Working

How to Fix Windows 11 Fan Speed Control Not Working

Struggling with Windows 11 fan speed control not working? Discover proven, step-by-step fixes to regain control over your PC

Troubleshooting Windows 11 Bluetooth LE Device Sync Error

Troubleshooting Windows 11 Bluetooth LE Device Sync Error

Struggling with Bluetooth LE device sync errors on Windows 11? Discover proven troubleshooting steps to resolve connectivity issues, restore pairing, and ensure smooth device syncing without frustration. Expert tips for the latest Windows updates.

How to Fix Windows 11 Cyberpunk 2077 Redlauncher Error

How to Fix Windows 11 Cyberpunk 2077 Redlauncher Error

Struggling with the frustrating Cyberpunk 2077 Redlauncher Error on Windows 11? Discover proven, step-by-step fixes to get back to Night City without the hassle. Updated with the latest patches for seamless gaming.