Lock Files and Folders with notepad(bat file)
How To

By Admin - June 13, 2017 4:27 pm   2   499   0

Lock files and folders with notepad. Without knowing password no one can open and see your secret folder. For more read full article and create your own Secret Folders and store private data.

Steps :

 1. Open Notepad by type notepad in run or search into start.
 2. Copy the below code and paste into notepad :

cls
@ECHO OFF
title infonoob.com
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST SecretFolder goto MDSecretFolder
:CONFIRM
echo Are you sure to lock this 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 SecretFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== infonoob goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" SecretFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDSecretFolder
md SecretFolder
echo SecretFolder created successfully
goto End
:End

 3. Save the notepad file as file_name.bat.
 4. Now open file_name.bat and a new folder will be created with name SecretFolder.
 5. Copy all your data you want to protect in that New folder.
 6. Now open file_name.bat and Type Y in Command Prompt and press enter.
 7. Now SecretFolder will be hidden, to access that folder open file_name.bat and it will ask for password enter your password (Default password is infonoob).
 8. To change password, open file_name.bat in notepad and edit this code :

set/p "pass=>"
if NOT %pass%== infonoob[type your own password in the place of infonoob] goto FAIL

 9. Enjoy!!!






Comment