Just copy the codes given below,
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%== 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
- Paste the copied code in a notepad and change the word “PASSWORD” (in the line, if NOT %pass%== PASSWORD goto FAIL ) with your password which you want to set.
- Save the file as ibllezboy.bat where ibllezboy is any arbitrary name selected by you.
- A batch file is immediately created where you have saved the ibllezboy.bat file.
- A new folder named “Locker” is created here after double clicking the ibllezboy.bat file.
- Add the files or folders you want to lock into the newly created folder.
- Again double click ibllezboy.bat.
- Type “Y” or “y”.
- The locker is locked and hidden.
- If you want to unlock it, just double click XYZ.bat and enter the password in the appeared window.
Please subscribe, leave a comment, follow this blog and share this article with your friends and colleagues.
by: http://kedirizone.blogspot.com
0 comments:
Post a Comment