You are on page 1of 2

Arturo R. Egnal Jr.

BSME
@echo off
echo Enter your username:
set /p Uname=
if %Uname% == arth2x goto A
if %Uname% == ARTH2X goto A
if %Uname% NEQ arth2x goto 3
:A
Echo Enter your password:
set /p Pword=
if %Pword% == arthh goto 1
if %Pword% NEQ arthh goto 4
:1
cls
echo You may open that folder.
goto 6
pause
exit

:2
cls
echo You have entered wrong password!!
pause
exit
:3
Echo Enter your password:
set /p Pword=
if %Pword% == arthh goto 5
if %Pword% NEQ arthh goto 7
pause
exit
:5
cls
Echo You have entered wrong username!!
pause
exit
:4
cls
echo You have entered wrong password!!
pause
exit
:6
cls
md sample
attrib +h +s sample
goto 8
pause
exit
:7

cls
echo You have entered wrong username and password!!
pause
exit
:8
cls
echo You want to unlock this folder(y/n)??
set /p dis=
if %dis% == y goto 9
if %dis% == n goto 10
pause
:9
cls
echo The folder is unlocked now.
attrib -h -s sample
pause
exit
:10
Echo The program will exit now.....
pause
exit