Sunday, November 27, 2011

Lock Folder Without Using Software



Follow These Instructions (or alternatively click here to download the software, password= tntwonder).
  1. Copy the following code and paste it in notepad. 
  2. Save it with "anyfilename.bat" (eg: lock.bat) (be sure to put .bat extension).
  3. Move the file lock.bat to the desired location.
  4. Double Click lock.bat and a folder locker will be created.
  5. Put your personal stuffs in this folder.
  6. Double click on this file again.
  7. Enter y or Y to lock, n or N to cancel.
  8. On entering y/Y, locker will disappear.
  9. To bring back this folder, double click on lock.bat an enter password tipsntricks


Batch File Code (to be copied in a notepad and saved with .bat extension)

cls
@ECHO OFF
title Folder Password by Aryan
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%== tipsntricks 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

Note: You Can Change The Password By Carefully Editing Line 23 (red line) of This Code