Trending
  • Best Free PDF to Excel Converter Online 2016
    Best Free PDF to Excel Converter Online 2016
  • Top 10 Best Free DVD Ripper for Windows
    Top 10 Best Free DVD Ripper for Windows
  • Top 5+ Fantastic Apps to Take The Best Selfies [Android]
    Top 5+ Fantastic Apps to Take The Best Selfies [Android]
  • How to Make Chrome/Firefox to Play Sound in One Tab at a Time
    How to Make Chrome/Firefox to Play Sound in One Tab at a Time
  • How You Can Keep Your WiFi Safe

    How You Can Keep Your WiFi Safe

    Even if having to deal with WiFi security is a real pain for some, it is something that needs to attention. Someone could steal your WiFi and use it for who knows what and cross your fingers that it is not for anything illegal.

    Read more...

  • What You Should Keep in Mind Before Buying a Used Smartphone

    What You Should Keep in Mind Before Buying a Used Smartphone

    As long as the phone works fine and has what you need, who care if it's not this years model. So, you've decided that the best thing you can do is buy a used phone. Before you go phone shopping, there are some things you need to keep in mind before you buy.

    Read more...

  • The Most Effective Ways to Get More Followers on Instagram

    The Most Effective Ways to Get More Followers on Instagram

    Before you give up and think about closing your Instagram account, there are some tips and tricks on how to increase your Instagram followers you should know about. By following these tips,...

    Read more...

  • How to Make a GIF From a Video (Windows, Mac, iOS, Android)

    How to Make a GIF From a Video (Windows, Mac, iOS, Android)

    ver the certain period of time, GIF images have gained so much popularity, and you can see them on the Social Networking websites. In the comments section of a website or your Twitter timeline, GIF is actually an animated image format which is created from different images or videos.

    Read more...

  • How to Take Great Pictures with Your Android Device

    How to Take Great Pictures with Your Android Device

    When was the last time you used a digital camera to take a picture? It's probably been a while, right? Most of us used our smartphone to take a million pictures of our pets or of that beautiful sunset you were lucky enough to see.

    Read more...

  • The Best iPhone 7 Tips and Tricks You're Probably Not Using

    The Best iPhone 7 Tips and Tricks You're Probably Not Using

    iOS offers an endless amount of great features you can enjoy, but you may not be taking advantage of them because you might not even know they exist or are too afraid you'll mess something up by tampering with it.

    Read more...

  • Everything You Sould Know Before Buying an SD Card

    Everything You Sould Know Before Buying an SD Card

    It's almost hard to believe that something so small can cause so many problems, doubts or confusion. For some, how you choose an SD card is of little or no importance while to others it's the most important thing.

    Read more...

How to Password Protect a Folder in Windows

How to Password Protect a Folder in Windows

7.0/7 rating 1 vote

It has been more than 15 years since Microsoft released the first stable and consumer ready version of Windows, Windows XP. Recently, The Redmond Company released most advanced operating system for personal computers, Tablets and Windows Phone, Windows 10. But even the latest version of Windows doesn’t provide an easy way to password protect folders on windows. However, with a little effort and some code, you can lock any folder on your computer.

There are plenty of third party software available on the internet which will allow you to lock a folder on computer. So, if you don’t want to go to the hassle of enabling the coding method, you can always use a third party software to password protect folders on Windows. One such good example is Free Hide Folder. Here’s the detailed guide on how you can password protect a folder in Windows.

How to set password to protect a folder

Method 1: Using Code

Open the location of the Folder which you want to hide and create a new text document. Right Click in the folder and Click on New and select Text Document

how to password a folder

You don’t have to rename the file now, simply double click on the file to open it. Here’s how it will looks like.

how to password a folder

Copy the following code and paste it in the text file as shown in the text below.

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u 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 Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==Your-Password-Here goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End


See Image Below:

how to password a folder

Natively, the Password will be Your-Password-Here, however, you can change it if you want to. Scroll down until you find the Your-Password-Here text.

how to password a folder

Now, replace the password with a new password. In this example, the password is test.

how to password a folder

Once you have changed the Password, Click on File in the top right menu and click on Save As. Don’t select the save options, because you need to change the extension of the file.

how to password a folder

Click on Text Document next to the save as type and change it to the All Files

how to password a folder

Name this file as FolderLock.bat and click on save to save this file on your computer.

how to password a folder

Close the text document and open the folder location again. Here you will find a new folder Locker

how to password a folder

Hold and drag all the folders and files that you want to password protect and drop them to the Locker folder.

how to password a folder

Now, Double Click on the folder locker, this will be the file that you recently saved in text document. It will ask you confirm the password protection and locking of this folder. Press Y from your keyboard to confirm it and close the folder.

how to password a folder

Now, you will see the Lockerfolder is vanished from the location.

how to password a folder

If you want to show the locked folder again, double click on the FolderLocker again and it will ask you to enter the password. If you haven’t change the password, it will be Your-Password-Here, however, if you have changed the password, write down the new password and hit enter.

how to password a folder

As soon as you close this program, you will again see the Locker folder on your computer.

how to password a folder

That’s it! Although this method doesn’t provide a high level security and it may have some breaches, but it is still better than nothing. If you find this method very lengthy, you can follow the alternative method to lock a folder in few seconds.

Method 2: Using Third Party Software - Free Hide Folder

This little utility is absolutely free of cost and works like a charm. The best part about this freeware is that it doesn’t come with the clumsy third party software. First of all, download and install the latest version of Free Hide Folder on your windows computer. Click Here to visit the main page of the developer. On the main web page click on Download Now to download the software.

Follow the on screen instructions to install this software on your windows computer.

After install the software, a new pop-up will be shown asking you to enter the password. You can choose whatever password you like and click on OK.

how to password a folder

On the main user-interface of the software, Click on Add to add the folders that you want to lock. You can select any folder from your computer.

how to password a folder

Select a folder and click on OK again

how to password a folder

Now, you will find the exact location of the folder and the status of it.

how to password a folder

Now, if you go to that exact location of the folder, you will not find anything there. To unlock the folder, open Free Hide Folder again and enter the password.

Select the folder that want to unhide and click on the unhide button.

how to password a folder

Close the program and there you will find your folder again. That’s it, by this method you can easily lock and unlock different folders on Windows. You can also make a backup of the locked folders which will be saved in a private a protected format.


Latest

  • How You Can Keep Your WiFi Safe
    How You Can Keep Your WiFi Safe
  • How to Hide Pictures, App Icons and Files on Android
    How to Hide Pictures, App Icons and Files on Android
  • What You Should Keep in Mind Before Buying a Used Smartphone
    What You Should Keep in Mind Before Buying a Used Smartphone
  • 10 Best Backpacks for College Students
    10 Best Backpacks for College Students
  • Top 5+ Best Point and Shoot Digital Camera
    Top 5+ Best Point and Shoot Digital Camera
  • How to Use Face Swap on Snapchat ( Face-Swap Feature )
    How to Use Face Swap on Snapchat ( Face-Swap Feature )

Author

Tayyab Sadiq
Tayyab Sadiq

Tech Savvy, Avid Reader, Phamacist by Profession and a Passionate Writer who loves to help people by his writing guides and tutorials. Need help on Computer or Smartphone, Shoot a question on twitter: @tayyabsa and don't forget to follow me!

comment

Leave a comment

You are commenting as guest.

Recent Comment

Great article

I run Directory Report as an administrator
That way it can find hidden file
http://www.file-utilities.com

It can...

Allan Man 23. November, 2016 |

This article is best google chorme are install.This extensions are help different email autuomatically introduce to user. This is must...

Tilly Wilson 10. November, 2016 |

Photobucket has been having technical issues for some time and is, in fact, down right now.

Also, you REALLY need a copy editor. Are...

EvenNote 04. November, 2016 |

About Website

OMG!HOWTO is a technology website where we cover the latest from Apple, Facebook, Microsoft and Tips & Tricks. We seek to present fresh news, useful tips, tutorials, applications that the modern technology user will appreciate. OMGHOWTO.COM is powered by Joomla.

0
Shares
0
Shares