Secure Folder Locker is a Windows batch script utility designed to protect sensitive files by creating a hidden, password-protected folder on your system. The script works by renaming your folder to a special Windows CLSID and applying hidden attributes to make it inaccessible to casual users.
- Create a secure, hidden folder for storing sensitive files
- Password protection for accessing the secure folder
- Simple menu-driven interface
- Password change capability
- Status indicators showing whether the folder is locked or unlocked
- Basic password validation and verification
- Improved error handling and operation feedback
- Windows 7/8/10/11
- Administrator privileges (required)
- Command Prompt access
- Copy the entire batch script into a text editor
- Save the file with a
.bat
extension (e.g.,FolderLocker.bat
) - Place the batch file in the directory where you want to create your secure folder
- Right-click the batch file and select "Run as administrator"
- Run the batch script as administrator
- The main menu will display "Status: NOT SETUP"
- Select option [1] to create a secure folder
- You'll be prompted to set up a password
- Enter a password at least 6 characters long
- Confirm your password when prompted
- The script will create a folder named "Locker" in the same directory
- Place any files you want to secure inside this folder
- Run the batch script as administrator
- The main menu will show "Status: UNLOCKED"
- Select option [1] to lock the folder
- Confirm your intention to lock the folder by pressing Y
- Enter your password when prompted
- The folder will be hidden and locked
- The script will confirm if the operation was successful
- Run the batch script as administrator
- The main menu will show "Status: LOCKED"
- Select option [1] to unlock the folder
- Enter your password when prompted
- If the password is correct, the folder will become visible and accessible
- The script will confirm if the operation was successful
- Run the batch script as administrator
- Select option [2] to change your password
- Enter your current password when prompted
- Enter and confirm your new password
- The password will be updated
This script provides basic privacy protection suitable for:
- Hiding sensitive files from casual users
- Preventing accidental discovery of personal files
- Basic privacy on shared computers
This script is not suitable for:
- Protection against determined attackers
- Security against users with technical knowledge
- True encryption of sensitive data
The script uses several techniques to provide basic security:
- Special Folder Naming: Renaming the folder to a Windows Control Panel CLSID
- Hidden Attributes: Setting system and hidden attributes on the folder
- Password Protection: Basic password verification before allowing access
- Simple Password Storage: The password is stored in a hidden file
Users should be aware of the following limitations:
- The folder protection can be bypassed by users who know how to show hidden files
- The password is stored in a hidden file with minimal protection, not true encryption
- The files inside the folder are not encrypted - only the folder itself is hidden
- If someone gains access to the batch file and the password file, they could potentially access your folder
For maximum effectiveness:
- Always run the script as administrator
- Use a strong, unique password
- Do not share the batch file or its location with others
- Consider renaming the batch file to something inconspicuous
- Do not store the only copy of important files in the secure folder
- Always lock the folder when not in use
-
"Administrative privileges required" message
- Right-click the batch file and select "Run as administrator"
-
Cannot see the folder after unlocking
- Refresh the Explorer window (F5)
- Ensure the folder was properly unlocked
-
"Invalid password" when you know it's correct
- Make sure Caps Lock is not enabled
- Try restarting the script
-
Cannot lock/unlock folder
- Ensure no files in the folder are currently open
- Close any Explorer windows showing the folder contents
- Run the script as administrator
- Check the script output for specific error messages
-
Folder not locking properly
- Make sure you're using the latest v2.1 script
- Ensure the folder isn't being accessed by another program
- Try closing and reopening File Explorer
The script creates the following files:
Locker
- The visible folder where you store your files (when unlocked)Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
- The hidden folder (when locked).config.dat
- Hidden file storing the password
Version 2.1 includes several important technical improvements:
- Improved password handling with more reliable storage and comparison
- Better folder operation sequence (remove attributes, rename, apply new attributes)
- Added verification checks after locking/unlocking operations
- Better error handling and suppression of distracting messages
- Fixed issues with folder attributes that could prevent locking
Advanced users can modify the script to:
- Change the default folder name by editing the
LOCKERNAME
variable - Change the Control Panel CLSID by editing the
HIDDENNAME
variable - Change the password file name by editing the
PASSWORDFILE
variable
- This tool is intended for personal privacy and organization
- Do not use this tool to hide illegal content
- This tool does not provide legally compliant data protection
- Not recommended for highly sensitive information that requires true encryption
This script provides basic privacy through obscurity techniques and is not a substitute for proper encryption software. The creator assumes no responsibility for any data loss or security breaches that may occur while using this utility.