Step-1.Firstly create any folder with any name then open Notepad w+R Copy this code and paste inside the notepad then save any name with Extension .bat
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%==softwarequery 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
Step-2. After saving the code copy any file and paste inside the Locker folder.
Step-3. Double click of program file see a command window then command window show a question like Are you sure u want to lock the folder<Y/N>. Write a Y means yes then your folder is Locked.
Step-4. If you want to open Unlock folder just type command Window softwarequery. Software very is your password.
Step-5. If you want to Change this password go to file and search ctrl+f this line if NOT %pass%==softwarequery goto FAIL! then change the password according to up to you.
0 comments:
Post a comment