Saturday 3 August 2013

TO PASSWORD PROTECT ANY FOLDER WITHOUT ANY SOFTWARE

1.Copy this whole in a note pad file save it a lock.bat
------------------------------------------------
cls
@ECHO OFF
title romitcooltricks.blogspot.com
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%== coolhacks goto 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 g
oto End
:End
------------------------------------
-----------------------------------------------------------------------------

2.Now open the file.
3.Copy your data in the new folder that comes.
4.Now double click on lock.bat and press y and pres enter
5.To again get access on the documents double click on lock.bat
6. Enter the password the default password is coolhacks
NOTE: To change the password change the coolhacks in the above code.. 

No comments:

Post a Comment