Lock any folder without any software
note
#donot use this method to protect any sensitive data.
#as u see this is a reg-stuff.so meka hodata wada karanna nam "show hidden files " =off and "hide extention for know file type" =on karala thiyenna oni.
# i didnt make this code just posted here.
Here is the Code:
cls
@ECHO OFF
title Folder Locker
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.
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 stuff by satish
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==TYPE UR PASSWORD HERE 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
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
Instructions:
1) dan deela thiyena code tika txt file 1kakata copy karala eka "XXX.bat" .bat file 1k widiyta save karanna oni.
oyalata oni pass word 1kath "TYPE UR PASSWORD HERE" kiyana kotasa delete karala type karanna
ex:-
if NOT %pass%==TYPE UR PASSWORD HERE goto FAIL <----[before changing]
if NOT %pass%==xxx goto FAIL <----[pass is xxx]
2) dan ara .bat file 1ka aluthin Folder 1k hadala ekata copy karaganna.
3) dan bat file 1ka d-click karanna,ethakota "Locker" kiyala folder 1k creat wenawa.
4) dan protect karanna oni file 1ka "Locker" folder 1kata copy karanna
5) ayeth .bat file 1ka d-click karama folder 1ka lock karanna ahanawa. "Y" type karala enater karanna.
6) folder 1ka un-protect karanna oniunama ayeth .bat file 1ka d-click karala dunna password 1ka type karanna.