Share the Blog

Wednesday 9 April 2014

Password Protect Any folder Without Any Software

  1. Copy the following code in Notepad
  cls
@ECHO OFF
title tricksntips4pc.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%== tricksntips4pc 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
goto End
:End

2. Save this file as lock.bat ( .bat is must )
3.Double click on lock.bat and new folder named MyFolder will be created.
4.Copy the data you need to hide in that folder.
5.Now double click on lock.bat again and press y and then enter in the command prompt window that appears.
6.If you want to access MyFolder anytime double click on lock.bat and enter the password. (Default password is tricksntips4pc) . The password can be changed by replacing tricksntips4pc with the desired password in the code .
7. The folder Now can be accessed again.
8.For locking folder again repeat the 5th step.
If you have problem write them in comment and I will sort them Out.
Share and comment if you liked it.

No comments:

Post a Comment