TECHNOLOGY SACK

How to have a locked folder with a .bat entension

Posted by ANSHU On 2 comments
Hello frnds.......
sometimes u want to lock any folder and u download folder lock software
but today i'm telling the solution for this..
so that you can lock any folder with a simple 50 kb file..

  Here's the solution:


  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 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%==enter your password here 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

now save this code in a notepad file with a .bat extension
after this go to edit this file and enter nay password where it is written enter your apssword here
again save it and double click on the file
a folder will appear
save the things to be locked in it
now click again the .bat file
it would ask u to lock the folder or not:reply with y or n
press y and u are all set to go.folder is locked and invisible.

only .bat file will occur


Posted by: Anshu  

2 comments:

Player said...

How to use it?

ANSHU said...

i have updated now about how to use it,check now and do comment how u like it...........

Post a Comment