How to lock any folder in computer without any folder lock, kisi folder ko lock kaise kare ?
And, Let me tell you one thing if you are not much interested in reading you can simply watch our video on Youtube about this topic from the provided link below.
https://youtu.be/rUrHdJ_jELs
So, First open your Laptop or desktop whatever you have then right click on your desktop and create a new folder then open the created folder and create a text document as shown below :-
and then open the text document and then you have to type few codes in it as shown below:-
ok no worry, i will make this easy for you just scroll down and copy the given code and simply paste in your notepad:-
CODE:-
cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Now, you have to put your own password in the 'password goes here' section so just select the 'password goes here' and delete it and type the password by which you want to lock and unlock the folder, as shown below:-
Now, go to the menu option and tap save as button and save the document as Locker.bat extension and dont forget to change save as type option to All Files, As shown below:-
Then, you can see that a new window batch file name as 'Locker' has been automatically created in your folder as shown below:-
Now, simply open the locker, after opening the locker you can see that a new folder has been generated automatically in your folder named as 'Private' as shown below:-
Now, Open the 'Private' folder and drag or paste the folder you want to lock in private folder and again open the locker and you can see that its asking do you want to lock the folder, as shown below:-
So, tap Y and you can see that your private folder disappeared from there it means it has been locked, shown below:-
Now may be you are thinking that how can i get my folder back. So, simply open the locker again and a new command window will appear and ask you the password to open the folder as shown below:-
Now, type your password whatever you filled earlier and press Enter you can see your folder again appeared in front of you, as shown below:-
So, finally you learned how to lock any folder and how to unlock any folder.
Enjoy.
My Youtube video link of this topic:- How to lock any folder in computer without any folder lock.
https://youtu.be/rUrHdJ_jELs
Comments
Post a Comment