Blogroll

Wednesday, 25 December 2013

PROTECT FOLDERS WITHOUT SOFTWARE

cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Enter password to lock folder or for cancel press N
set/p "cho=>"
if %cho%==XXXX 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%==XXXX 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



  1. Copy this Code into notepad and replace the XXXX with your password.
  2. Save it with .bat extension(for eg: lock.bat).
  3. Copy the Batch file to any folder.
  4. Now double click the Batch file, It will ask you to enter the Password. Enter the password.
  5. Now you can see the Lock folder is created.
  6. Place your files into lock folder which you want to protect.
  7. Again double click the Batch file, it will ask you enter the password. Enter the password.
  8. Now the folder will be Locked.
  9. To unlock again double click the Batch file,enter the password.
  10. You can see the Lock folder.

Enjoy simple and free trick....

0 comments:

Post a Comment