Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Share Post: Reddit Facebook
Password protect a folder in windows
#1
Although locking a folder isn’t the most secure way of protecting it, but it’s a fine method to have on hand in a pinch.
 
1- First, navigate to the folder you’re looking to restrict access to and create a new text document within it (right-click > New > Text Document)

2- Open that document up and paste the following string into the body
 
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 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
 
3- Replace the section of the text that reads your_password with an appropriate word or phrase, then navigate to File > Save As. Click the dropdown menu labelled Save as type and select All Files before naming the document Locker.bat

4- Once that document has been saved, exit and double click the .bat file to produce the locker folder, which can then be filled with the content you’re looking to protect. Open up the .bat file again and respond with Y when prompted to put your folder on lockdown. When you want to unlock it, simply open up that .bat file once more and input your password.
Reply
#2
To much trouble for me.
Reply
#3
It looks difficult but actually very simple(open folder---Right click inside---new txt document  ---copy the text in blue with your password added --save as .bat file---double click)
Reply
#4
Seems very difficult to me !
Reply
#5
interesting......

I will save this one and keep it in mind. Might be able to use it on something at the office. Thanks ;)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Use USB Encryption Tools to Password-Protect Files and Folders on the Go tarekma7 1 3,262 06-12-2016 , 06:11 AM
Last Post: whiq
  Reset Your Forgotten Windows 10 Password For Free tarekma7 1 2,187 02-18-2016 , 06:00 PM
Last Post: Mohammad

Forum Jump:


Users browsing this thread: 1 Guest(s)