Generally We use folder locker to lock any file or folder but now really you can lock folder using a batch files. So start to Lock everything.......
Step 1: Open Notepad
First of all open NotepadStep 2: Copy and Paste
Just copy and paste it to the notepad
@ECHO OFF
title Folder Locker By sistunes
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST MyFolder goto MDMyFolder
:CONFIRM
echo Are you sure to lock this 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 MyFolder "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 Your Secure Folder
set/p "pass=>"
if NOT %pass%== Hello1goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" MyFolder
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDMyFolder
md MyFolder
echo MyFolder created successfully
goto End
:End
Step 3: Save It
Now save it as locker.bat
your saved file will look like this -
Step 4: Open That
Double click on locker.bat file
A new folder named "MyFolder" will be created.
Now move your all content to this folder.Step 5: Lock
Done. Double click on locker.bat file and it will ask you for locking folder. Type y and hit enter.
Refresh and your folder will disappear means locked.Step 6: How to Open
Double click on locker.bat File and now it will ask for password.
By default the password is Hello1. Enter it and your folder will appear.
Sourav
Thursday, February 27, 2014