Hi all of you today I will tell you how to lock windows 7/vista folder without any software. Follow the steps:
1) Open the notepad
2) Paste the following code in it
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 Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==passwordhere 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
3) You can put your password in the place of passwordhere in the above code.
4) Now save file as XYZ.bat
5) Click on the file "XYZ.bat". it will ask to enter the password.type your password and press enter.
6) You will see a new folder named "Locker" is opened.
8) now again click on the XYZ.bat .Now it will ask you do you want to lock the folder or not? Press y and then press enter.
Nice! But I do have a question, what if someone deletes the XYZ.bat??
ReplyDeleteIf anyone delete the XYZ.bat file then also the data will be present in the hidden form.It will not delete the saved filesin the locker folder.Now if anyone delete the bat file then create another XYZ.bat file and put it in the same location where the deleted bat file was present.Then again open bat file and enter the password. you will get the locker folder as it is with your saved data.
DeleteBut anyone can right click on XYZ.bat file and see you password ...LOL
ReplyDeletewhy does it says 'access denied' when i want to lock my folder?
ReplyDeletenice ..thanks
ReplyDelete