Locking a Folder without any Software:-
open Notepad and copy the following code and save it as "lock.bat"
CODE:-
cls
@echo off
title folder lock
IF EXIST "Control Panel{21EC2020-3AEA-1069-A2dd-08002B303-09D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo folder created
:CONFIRM
echo are you sure to lock the folder(y/n)
set/p "choice="
IF %choice%==y GOTO Lock
IF %choice%==Y GOTO Lock
IF %choice%==n GOTO END
IF %choice%==N GOTO END
echo invalid choice
GOTO CONFIRM
:LOCK
ren Locker "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
attrib +h +s "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
echo folder locked
GOTO END
:UNLOCK
echo enter the password
set/p "qwerty="
IF NOT %qwerty%==hv7ab10 GOTO FAIL
attrib -h -s "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
ren "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}" LOCK
echo folder unlocked successfully
GOTO END
:FAIL
echo invalid password
GOTO END
:MDLOCKER
md locker
echo folder created
GOTO END
:END
pause
Run it.
This will create a folder named "Locker" in which just drag the files and folders you want to lock and hide and again run it. The predefined password is "hv7ab10"...You can change it yourself by editing the code..
Enjoy..
open Notepad and copy the following code and save it as "lock.bat"
CODE:-
cls
@echo off
title folder lock
IF EXIST "Control Panel{21EC2020-3AEA-1069-A2dd-08002B303-09D}" GOTO UNLOCK
IF NOT EXIST Locker GOTO MDLOCKER
echo folder created
:CONFIRM
echo are you sure to lock the folder(y/n)
set/p "choice="
IF %choice%==y GOTO Lock
IF %choice%==Y GOTO Lock
IF %choice%==n GOTO END
IF %choice%==N GOTO END
echo invalid choice
GOTO CONFIRM
:LOCK
ren Locker "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
attrib +h +s "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
echo folder locked
GOTO END
:UNLOCK
echo enter the password
set/p "qwerty="
IF NOT %qwerty%==hv7ab10 GOTO FAIL
attrib -h -s "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}"
ren "Control Panel{21EC2020-3AEA-1069-A2DD-08002B303-09D}" LOCK
echo folder unlocked successfully
GOTO END
:FAIL
echo invalid password
GOTO END
:MDLOCKER
md locker
echo folder created
GOTO END
:END
pause
Run it.
This will create a folder named "Locker" in which just drag the files and folders you want to lock and hide and again run it. The predefined password is "hv7ab10"...You can change it yourself by editing the code..
Enjoy..
No comments:
Post a Comment