-->

Windows file explorer Lock your Folder and files without any software

1 minute read

 Windows file explorer Lock your Folder and files without any software

Lock your folder



This is folder lock code
-----------------------------------------------------------------------------------------------------------------------

         @ECHO OFF
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDPrivate
:CONFIRM
echo Are you sure 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 Private "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== YOUR PASSWORD goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDPrivate
md Private
echo Private created successfully
goto End
:End

------------------------------------------------------------------------------------------------------------------

This code is safe 

bat mean batch file

Step by Step lock procedure:-
First     :-  copy the code
Second :- open the notepad file "run as administator"
Third    :- past the code save the file this formate <filename>.bat
.bat is very important

fourth    :-  Run the bat file open the command prompt type your password and enter now create the private folder is now create
your important files and details move to private folder then again open bat command file to view this once
Type yes (y) the folder is lock



SUCCESSFULLY LOCK FILE AND FOLDER WITHOUT ANY SOFTWARE :)