Skip to content

kazuya256/Drive-locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” D: Drive Content Locker (Windows Batch Script)

A simple batch script to lock and unlock all folders and files in D:\ using the Windows attrib command with basic password protection.

⚠️ This script is for basic privacy only, not for true data security.


πŸ“ Features

  • Lock (hide) all top-level files and folders in D:\
  • Unlock them after entering the correct password
  • Skips system-protected folders like $RECYCLE.BIN
  • Easy menu-driven interface

βš™οΈ How It Works

  • +h β€” Hides the file/folder
  • +s β€” Marks it as a system item (extra hidden)
  • /s β€” Applies changes to all subfolders/files
  • /d β€” Applies to directories (folders)

πŸ”§ Setup

  1. Download or copy the DriveLocker.bat file to your system.

  2. Edit the script in Notepad or any text editor. Find this line:

      set password=YourPasswordHere
    

    Replace YourPasswordHere with your desired password.

  3. Double-click DriveLocker.bat to run it.

  4. Choose an option from the menu:

    - 1. Lock all content in D:\
    - 2. Unlock content in D:\
    - 3. Exit
    

About

πŸ” Windows batch script to lock/unlock all files & folders using attrib with basic password protection βš™οΈπŸ“

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors