Many people might have some files or folders on their computers in secret and don’t want to be known or found by other person. And providing a password protect for them will be smart choice. So now I would like to introduce some easy steps which can help you protect your file or folder with password.
Using a locker folder on Windows is not an easy task for the common people, because it should add batch scripts to the folder you want to get protected. So few people know how to use this way to lock their files. Here are specific instructions which show you how to do:
@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
To open the file in the locker folder, you can double-click on the BAT file, enter your password and hit Enter key.
If you yon want a stronger protection for your files or folders, you can consider to purchase a third-party software which is specialized in providing more powerful password protection for those important files or folder.
Comments
You must be logged in to post a comment.