Password protect a folder

mystical

Member
Reputation
0
We're going to make a hidden folder that is hidden by a little program. When you open the program, you type the correct password and your folder will be seen.

OK, open notepad and write in it :

Code:
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

replace the XXXX by the password you want
save it finally anything.bat

That's it !! too easy
 
yes! i knew this thing and it works :)
 
nitish...are you going to post to every single tutorial I post up? Also, aren't you from HF?
 
PhineasPhreak said:
Ooooh I did not know this...
I am preety sure that there are bypasses, can't think of them now...

There are bypasses but most people actually don't care if a folder is locked or not so they don't bother. Most usually go for the folders that are open and easily looked at.
 
This is very nice coding to protect password protected folder, and is very helpful to security purposes.
 
Back
Top