Skip to content

Sanjeevkumar-cs/custom-locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Secure Folder Locker (Batch Script)

A lightweight Windows Batch Script to lock and unlock folders with a password.
This script disguises your folder as a Control Panel shortcut and hides it using system attributes, making it inaccessible without the correct password.


Features

  • Automatically creates a private folder (Private) if it doesn’t exist.
  • Lock the folder by renaming it into a Control Panel shortcut.
  • Hide the locked folder with system attributes (+h +s).
  • Unlock the folder with a password prompt.
  • Simple password check to prevent unauthorized access.
  • No external software required—just native Windows batch scripting.

How It Works

  1. Save the script as locker.bat.
  2. Run the script:
    • If the folder is unlocked, you’ll be asked whether to lock it.
    • If the folder is locked, you’ll be prompted for a password to unlock it.
  3. When locked:
    • The folder is renamed to Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}.
    • Hidden and system attributes are applied.
  4. When unlocked:
    • The folder is restored to Private.
    • Attributes are removed.

Setup

  1. Open the script in a text editor.
  2. Replace YOUR-PASSWORD with your desired password.
    if NOT %pass%== YOUR-PASSWORD goto FAIL

About

A simple Windows Batch Script that allows you to lock and unlock a folder with a password. It works by renaming the folder and applying hidden/system attributes to prevent easy access.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors