Protect the folder with password without any special softwareStep 1 -- Copy the following codings
cls
@ECHO OFF
echo // Check1 (In Main Function)
title Folder LockFolder
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLockFolder
if NOT EXIST LockFolder goto MDLockFolder
:AuthConfirm
echo Are you sure u want to Lock Folder (Y/N)
set/p "cho=>"
if %cho%==Y goto LockFolder
if %cho%==y goto LockFolder
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto AuthConfirm
:LockFolder
ren LockFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder LockFolder Locked!
goto End
:UNLockFolder
echo Enter password to Unlock Folder
set/p "pass=>"
if NOT %pass%==abc goto FailUnlock
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" LockFolder
echo Folder UnLocked successfully!
goto End
:FailUnlock
echo Invalid password!
echo Try again? (Y/N)
set/p "choice=>"
if %choice%==Y goto UNLockFolder
if %choice%==y goto UNLockFolder
if %choice%==N goto END
if %choice%==n goto END
:MDLockFolder
echo // Check2 (In MD Dir Function)
md LockFolder
echo Folder LockFolder created successfully!
goto End
:End
Step 2 -- Paste the coding in new notepad
Step 3 -- In the line " if NOT %pass%==abc goto FailUnlock "
--- edit the word abc to password that you want
--- ex : " if NOT %pass%==jestel goto FailUnlock "
Step 4 --- After chance password save the file as bat file shown below
------- example : " jestel.bat"
Step 5 --- After save as bat file, File becomes like, shown below
Step 6 --- Now double click on bat file, A new folder named " lock folder " appears
Step 7--- Save the files in lock folder that you want protect
---- After save the file
---- again double click the bat file
----the command box display as " Are you sure you want to lock folder y/n "
----- type y "yes"
----Press enter
Step 8 ---- now " Lock Folder " has been protected
------- will not display on screen
Step 9 --- To open the lock folder
------- Again double click bat file
---- type the password
Step 10 ---- lock folder will display on screen
-----again to protect
-------click bat file
---------press y and click enter