Just copy the following code in the notepad and save as a .bat extension.
eg- lock.bat,etc
in the 13th line from d end, it says- ‘if NOT %pass%==kingstoneee goto FAIL’
here, d password is kingstoneee.Cut dis n give ur own password..
After saving ,double click on it and u will get a folder by the name ‘Locker’ where u hav saved dis file.
Then put ur stuffs in dat locker n double click on ur .bat extension…
it will ask u to hide locker, Y/N..
if u press Y d locker will be hidden n even if u goto tools – show hidden folders u wont be able 2 see dis locker folder..
nxt tym when u want 2 open dis locker.,double click on .bat extension n it will ask u for ur password…!
the code is -
Quote:
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%==kingstoneee 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
@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%==kingstoneee 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
No comments:
Post a Comment