Locking Files and Folders with a simple Batch Script 04-02-2014, 08:23 AM
#1
Features
+ Locked/Unlock folder w/ Custom Password(s).
+ Hide anything inside!
+ Works on Windows!
+ Delete Feature
1. Open Notepad.
2. Copy code below and paste it in Notepad.
3. Save it as: Locker.bat (make sure to select Save as Type: All Files).
4. To edit code, Right click icon on desktop (or saved location). Select "Edit".
How to Lock & Hide the Folder.
Click the icon it creates on you desktop.
(This create a visible folder on your desktop, which you can place items into).
After you have finished editing contents of your folder, Click the icon to lock and hide the folder.
How to Unlock & Show folder.
Click the icon it creates on you desktop.
Enter Password.
Credits:- Computermods
+ Locked/Unlock folder w/ Custom Password(s).
+ Hide anything inside!
+ Works on Windows!
+ Delete Feature
1. Open Notepad.
2. Copy code below and paste it in Notepad.
Quote:@ECHO OFFBe sure to change the password in Notepad!
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the 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 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 folder
set/p "pass=>"
if NOT %pass%==ComputerMods goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
3. Save it as: Locker.bat (make sure to select Save as Type: All Files).
4. To edit code, Right click icon on desktop (or saved location). Select "Edit".
How to Lock & Hide the Folder.
Click the icon it creates on you desktop.
(This create a visible folder on your desktop, which you can place items into).
After you have finished editing contents of your folder, Click the icon to lock and hide the folder.
How to Unlock & Show folder.
Click the icon it creates on you desktop.
Enter Password.
Credits:- Computermods
Free Downloads:- http://hgdownloads.in
![[Image: Capture0.PNG]](http://3.bp.blogspot.com/-g3NhKWnxZ9I/UfD9SdHnnkI/AAAAAAAAATs/StBS-mqAe0w/s1600/Capture0.PNG)
Blogging Tutorials:- http://blogbuzer.blogspot.com
Blogging Tutorials:- http://blogbuzer.blogspot.com




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: MUJ8qSW.png]](http://i.imgur.com/MUJ8qSW.png)

![[Image: wvBFmA5.png]](http://i.imgur.com/wvBFmA5.png)