How To Lock Folders in Computer
None of the operating system supports folder encryption natively but we can do this in different way such as creating a bat file or using third party software
locking a folder using bat file
Now i will tell you how you can create a bat bat file to lock a folder you can use this in any operating system
step 1: copy the code
open notepad and copy paste the script as same as written :
cls
@ECHO OFF
title MYHACKERWORLD.COM
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.
pause
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%==MYHACKERWORLD 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
pause
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End
cls
@ECHO OFF
title MYHACKERWORLD.COM
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.
pause
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%==MYHACKERWORLD 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
pause
goto end
:MDLOCKER
md Locker
echo Locker created successfully
pause
goto End
:End
step 2: change the password
Where it says "MYHACKERWORLD", change it to your desired password.
STEP 4 :SAVE THE SCRIPT
Save the file with name "locker.bat" and as all types and click "Save". and close the window and run the locker file by double clicking on it
after doing this you will get a folder named MYHACKERWORLD.COM
Move all the things to this folder which you want to protect and again run locker.bat
after doing this you will get a folder named MYHACKERWORLD.COM
Move all the things to this folder which you want to protect and again run locker.bat
A Command Prompt will open, it will ask you to lock the folder. Type Y then press enter.
You are done now NO one can access your folder without password.
You are done now NO one can access your folder without password.