I am not sure this is already posted, only yesterday I came to know about this, so thought will share with you all.
Follow these steps:
1) Open Notepad and copy the contents of the code below.
2) Change the password by replacing change to your desired password in the code above with your desired password.
3) Save it as FL.bat and close. (Note: Try to be innovative and save it in such a way that it sounds like a system file so that nobody will try to bother clicking it)
4) Double click run FL.bat.
5) It will create a new folder called ‘MyPrivateLocker’ automatically. (If you want the file name to be different, replace MyPrivateLocker in the code above with the name of your choice). This new locker folder will be created in the same folder/drive as the .bat file).
6) Copy/place the files to be locked and hidden inside the MyPrivateLocker
and double click run FL.bat, it will ask whether you want to lock. Say ‘Y’ and now your folder will get locked and hidden.
7) To unlock and unhide the folder, double click run FL.bat again and enter your password you have changed in the code (step 2).
Tested for invalid password : Gave error
Follow these steps:
1) Open Notepad and copy the contents of the code below.
cls
@ECHO OFF
title Folder MyPrivateLocker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyPrivateLocker 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 MyPrivateLocker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo MyPrivateLocker locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==change to your desired password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyPrivateLocker
echo MyPrivateLocker Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md MyPrivateLocker
echo MyPrivateLocker created successfully
goto End
:End
@ECHO OFF
title Folder MyPrivateLocker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyPrivateLocker 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 MyPrivateLocker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo MyPrivateLocker locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==change to your desired password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyPrivateLocker
echo MyPrivateLocker Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md MyPrivateLocker
echo MyPrivateLocker created successfully
goto End
:End
3) Save it as FL.bat and close. (Note: Try to be innovative and save it in such a way that it sounds like a system file so that nobody will try to bother clicking it)
4) Double click run FL.bat.
5) It will create a new folder called ‘MyPrivateLocker’ automatically. (If you want the file name to be different, replace MyPrivateLocker in the code above with the name of your choice). This new locker folder will be created in the same folder/drive as the .bat file).
6) Copy/place the files to be locked and hidden inside the MyPrivateLocker
and double click run FL.bat, it will ask whether you want to lock. Say ‘Y’ and now your folder will get locked and hidden.
7) To unlock and unhide the folder, double click run FL.bat again and enter your password you have changed in the code (step 2).
Tested for invalid password : Gave error
No comments:
Post a Comment