Skip to main content

Posts

Showing posts with the label Folder Lock

How to Lock a Folder Using Notepad (and Why to Encrypt Instead)

Short answer: a popular Notepad batch script can hide and "lock" a folder behind a password for casual privacy. It is a fun trick that stops a nosy sibling or coworker, but it is NOT real security, the files are recoverable. For anything genuinely private, use encryption. Here is the trick and, more importantly, the safe alternative. The Notepad folder-lock script Open Notepad and paste this script (change YOURPASSWORD to your own): 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 Lock the folder? (Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==N goto END :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 set/p "pass=>" if NOT %pass%==YOURPASSWORD g...