Today i am going to tell you how to create a folder locker without any software in window 7. People often download the softwares from the internet in order to hide their useful or private data in the computer. But you might have found that those softwares are just for 10 or 15 or maximum 30 days trial periods after which you have to buy that software. There are many guys who don't want to or who can't afford to buy the softwares from the internet. So,if you want to create a folder locker without even paying a single penny then you are at right place.
Let's start the tutorial:-
Code to create the free folder locker is:-
cls
:End
@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%==Enter 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
- First of all open the notepad in your computer. Then copy the above code and then paste this code in the notepad.
- Now replace "Enter your password here" with the password you want to have for your folder locker.
- Save the code with any name having .bat extension(it will create batch file).
- Now open that file and it will open a small window which will ask you to "Enter password to unlock folder"
- Type the password which you select in the step no.2 and it will show "folder unlocked succesfully"
- A new folder will create of the name "Locker" in which you can hide your data(pictures,videos,games etc) and press "y" to lock the folder again.
Credits:- Yuvraj Salaria