Hi Guys , Back with a new working trick......
Here is a NEW trick using which you can lock any folder on windows without installing any software.
Here is a NEW trick using which you can lock any folder on windows without installing any software.
Copy the code provided below exactly and paste it into notepad (Start > Run > Notepad). Save as protect.bat and exit notepad. Double click on protect.bat and you will see a new folder on your desktop called “Locker”.
Copy all the files you need to be hidden there. Double click on protect.bat again, and it will ask you if you want to hide the folders, type in y and press Enter. To un hide, double click protect.bat, type in your password and press enter. That’s it!
Copy all the files you need to be hidden there. Double click on protect.bat again, and it will ask you if you want to hide the folders, type in y and press Enter. To un hide, double click protect.bat, type in your password and press enter. That’s it!
Following is the code you’ll need to this stuff,
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%== thisIsMyPassword 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
@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%== thisIsMyPassword 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
In the above code, don’t forget to edit the line that have your password the above code.
if NOT %pass%== thisIsMyPassword goto FAIL
Also this video will help you all...........
Also this video will help you all...........
Update - Check out the following video tutorial that illustrates this trick,
Hmmee..
ReplyDeleteI never notice that tricks...
hoho..
:D
good..
Thanks Bro :)
ReplyDeletehey, i cant open locker.dat file. when i double click on it,nothing happening. can you please tell me what can i do for that!!
ReplyDeleteThere is a bug in this coding....The folder when searched as Locker, we cannot find it,but when we search the name of any subfolder, we can get into the locker folder with ease... can you tell me how to apply the hidden and read only attribute to the sub files and folders using the batch file?
ReplyDelete