You can easily lock any folder on your Windows computer with a simple Notepad hack. By creating a batch file, you can hide a folder and require a password be entered before it becomes visible and accessible. This is a great tool for locking sensitive information, like pictures, financial statements, and a lot more.
This trick will work on just about any version of the operating system, including Windows 10, Windows 7, Windows XP, Windows 98, and so on.
Step1:Open Notepad
Start by opening Notepad, either from search, the Start Menu, or simply right-click inside a folder, then choose New -> Text Document.
Step2:Add Code to Document
Now just copy the text below and paste it into your document.
cls
@ECHO OFF
title adityanigamtech
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Do you want 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 MyFolder "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 the password to Unlock Your Folder
set/p "pass=>"
if NOT %pass%==adityanigamtech goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End
Step:3Edit Folder Password
With the text pasted in, you can adjust the locked folder's password used to unlock it. The default password is "adityanigamtech"
You can change password By replacing the word adityanigamtech to anything password you like
Step4:Save Batch File
Now save as the file as whatever name you'd like, but make sure the name ends in ".bat" and that you select "All files" in the drop-down box when saving. Also, if you opened Notepad directly rather than using the right-click, be sure to adjust your save location accordingly.
Step5:Create Folder
Now double-click on the batch file you just created . You'll notice a new folder come up.
Step6:Lock the Folder
Once you're ready to lock the folder, simply double-click on the .bat file, then choose 'y' on the window that pops up and hit Enter.
Step7:Access Your Hidden & Locked Folder
Now whenever you need access to your folder, just double-click on the batch file, input your password, and hit Enter.
Comments
Post a Comment