How to put a password on a folder in Windows 10

How to put a password on a folder in Windows 10

Do you have a secret files or folders in your computer that should not be discovered by your girlfriend, kids or colleagues? Here we will show you how to put a password on a folder in Windows 10 without installing the 3rd party software.

Note: Backup all your files that should be protected before you start. After you create a secure folder, try it several times before copying files and folders in.

 

How to put a password on a folder in Windows 10:

  1. Open file explorer and go to a folder you want to protect
  2. Right-click inside this folderHow to put a password on a folder in Windows 10
  3. Select New > Text document How to put a password on a folder in Windows 10
  4. Open the text file you’ve created How to put a password on a folder in Windows 10
  5. Copy the code below this tutorial and paste it into the text file you’ve created. How to put a password on a folder in Windows 10
  6. Find the line in the code where is written “if NOT %pass%==Your-Password-Here goto FAIL” (on line 45) and replace Your-Password-Here with a password you want to use. How to put a password on a folder in Windows 10
  7. Go to File > Save as How to put a password on a folder in Windows 10
  8. Switch at the bottom of Save dialog Save as type to All Files (*.*) How to put a password on a folder in Windows 10
  9. Change the filename to FolderLocker.bat and Save it. How to put a password on a folder in Windows 10
  10. Open the FolderLocket.bat How to put a password on a folder in Windows 10
  11. A new folder named “Locker” has been created. Now move there all files you want to hide. How to put a password on a folder in Windows 10
  12. Open the FolderLocket.bat. A new command window appears. How to put a password on a folder in Windows 10
  13. Type Y in the command window How to put a password on a folder in Windows 10
  14. Press Enter. The folder Locker will disappear. Your files are now hidden and password protected. How to put a password on a folder in Windows 10
  15. To reveal and unlock the hidden folder, open again FolderLocket.bat. You will be asked for your password. How to put a password on a folder in Windows 10
  16. Enter your password and press Enter. How to put a password on a folder in Windows 10
  17. Your protected folder Locker will appear again and you can work with files inside. How to put a password on a folder in Windows 10

 

 

______________________________________

Code to be inserted into a text file:

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

 

 

 

Summary
How to put a password on a folder in Windows 10
Article Name
How to put a password on a folder in Windows 10
Description
Do you have a secret files or folders in your computer that should not be discovered by your girlfriend, kids or colleagues? Here we will show you how to put a password on a folder in Windows 10 without installing the 3rd party software.
Author
Publisher Name
How2db.com
Publisher Logo
Share:
Tony Poruba
is PROUD father and geek. Founder of How2db.com. Enthusiastic beginner in SEO and social networking. He is also an average ice hockey player, canoeist, beer lover, and guitarist. Sometimes (often) he has to go to work as an industrial engineer.
Tony Poruba on EmailTony Poruba on FacebookTony Poruba on GoogleTony Poruba on LinkedinTony Poruba on PinterestTony Poruba on TwitterTony Poruba on Wordpress
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...