Locking Folder in Win-XP
Locking Folder in Win-XP
NOTE: For more safety keep those two .bat files in another location & probably make
it hidden. Only for unlocking/locking copy paste to the original location and
double click
Now, here we will see how to create a folder that will not just be invisible, but
also require a password to reveal it and open it. The best part is that you don�t
need any special software to do this. Just plain old Notepad is all that you need.
cls
@ECHO OFF
title Folder Personal
if EXIST �Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}� goto UNLOCK
if NOT EXIST Personal 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 Personal �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%==pwd123 HERE goto FAIL
attrib -h -s �Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}�
ren �Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}� Personal
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Personal
echo Personal created successfully
goto End
:End