And today im( SAI LAKSHMAN). In this post I am going to show you an interesting thing in notepad by which you can create your own folder locker application within 2 minutes.
In order to protect all this data from thefts or to keep them private from the other users of your pc you need a software to lock them with a password.But now a days if we want a full version of a software to lock files definitely we have to pay some money.So here's a solution in which I will show you how to create a folder locker using only notepad
We often think that we use notepad for just writing some text and numbers,but the amazing thing behind the notepad is with the help of the programming language and using the correct extensions we can actually create many simple and useful applications.Here is an example for one of them.
THINGS YOU NEED:
- Just a NOTEPAD in your PC
HOW TO MAKE A FOLDER LOCKER USING NOTEPAD:
step 1: press WIN+R and type "Notepad" without quotes in the run box
step 2: Copy the following code and paste it in the notepad
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 you 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
step 3:Replace YOUR PASSWORD HERE with your own password
step 4: Save the file with filename .bat extension this is the very important step , Because extension type is very important to run the file
ex: lakshman.bat
0 comments:
Post a Comment