Lock Folder Without Any Software


Friends Now you can lock any folder with this script without need of any software.
Just copy the below script and copy to notepad.
--------------------------------------------------------------------------------------------------
Quote:
Quote: cls
@ECHO OFF
title Folder Private
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you 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 Private "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%== password goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
-----------------------------------------------------------------------------------------------------

After copy save it and write name as Locker.bat

[Suppose this file is save in My Document]
After open this batch file (Locker.bat).
You will see a new automatically created folder name as Private. 
Copy your all secure data to this folder.
Now back to the My Document. To lock the Folder open Locker.bat file
and u will see new ms-dos window and asking you as

>> Are you sure want to lock the folder <Y/N>
Type Y and press enter to lock the folder.

To unlock the folder again open Locker.bat and it asking u as

>>Enter password to unlock the folder
Type password and press enter your private folder is being shown.

To change password edit this line in script.
Line no. 24

if NOT %pass%== password goto FAIL

Change password to any word you like. For example shaikh.

if NOT %pass%== shaikh goto FAIL.


No comments:

Post a Comment