Monday, October 21, 2013

Folder Locker (Hider) using batch

Folder Locker (Hider) Using Batch:

Program:

cls
@ECHO OFF
title Folder Gokul
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Gokul goto MDLOCKER
:CONFIRM
echo Input password to proceed with locking.
set/p "pass=>"
if %pass%==ANKORWATT goto LOCK
echo Incorrect Password.
goto CONFIRM
:LOCK
ren Gokul "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%==ANKORWATT goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Gokul
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Gokul
echo Gokul created successfully
goto End
:End

Logic Behind the above code:

  When you rename a folder like Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} then the certain folder will getting hide automatically.

No comments: