Here is a simple code that i developed to lock and unlock any folder.
copy the code below in notepad and save the file with any file name with the extension ".bat"
copy the code below in notepad and save the file with any file name with the extension ".bat"
Code:
@ECHO OFF
ECHO 1 - Lock File
ECHO 2 - Unlock File
ECHO 3 - Quit
ECHO Enter Choice.
SET /P variable=
IF %variable%==3 exit
IF %variable%==2 GOTO UNLOCK
IF %variable%==1 GOTO LOCK
:LOCK
ECHO Enter Folder Name To Lock
SET /P Variable1=
REN %variable1% %variable1%.{21EC2020-3AEA-1069-A2DD-08002B30309D}
exit
:UNLOCK
ECHO Enter Folder Name To UnLock
SET /P Variable1=
REN %variable1%.{21EC2020-3AEA-1069-A2DD-08002B30309D} %variable1%
exit
Note:- It is not at all secure.
- The locked folder can be unlocked using the program or by simply renaming and removing the added code.
- You can distribute the above code to any one, any number of times.