Step 1: Open Notepad
Step 2: Copy code below and Paste to notepad
Step 3: Save it as locker.bat
Step 4: Now double click locker.bat, a new folder named "MyFolder" will be created. You can move your files to this folder.
Step 5: How to Lock?
Just double click on locker.bat and it will ask you for locking folder. Type y and hit enter.
Step 6: How to Unlock?
Double click on locker.bat and it will ask you for password. By default, the password is "phc".
Step 2: Copy code below and Paste to notepad
Code:
@ECHO OFF
title PHC
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyfolder
:CONFIRM
echo Are you sure you want to lock this 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 MyFolder "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
set/p "pass=>"
if NOT %pass%== phc goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
Step 3: Save it as locker.bat
Step 4: Now double click locker.bat, a new folder named "MyFolder" will be created. You can move your files to this folder.
Step 5: How to Lock?
Just double click on locker.bat and it will ask you for locking folder. Type y and hit enter.
Step 6: How to Unlock?
Double click on locker.bat and it will ask you for password. By default, the password is "phc".