Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Im having a little trouble here..(well actually I feel really stupid about this)
I have WBAT and I have known how to make menus that use the CHOICE command for a long time now..
I want to make a login box for dos with WBAT
just including Name: and Pass:.
Can anyone show me or make one for me?
It should look like this (I doubt you'll take time to do this but some ppl do)
The tutorials dont help me at all with this.
I just want to input the stuff to continue loading dos.
I mean Putting in e.g. Name:Cj
Pass:******
to go to dos.
______________
|Login Box [X]
[Name: ]
[Pass: ]
___Ok___No___is there anyone willing to take a challenge?
(if this isnt a challenge im pretty stupid.)
If anyone makes the box, PLEASE tell me how to make this so where i can put in a name
and password to access my dos menu.
Input
Name=Cj
Password=Sharks or whatever, I guess i can do that.
This is big for me so please dumb it down as much as you can.
I dont understand WBAT.Curiousity only injured the cat.
I finished it off..
Muahahaha...

Heres a more precise mental image...
╔═══════════╗
║Login__________║
╠═══════════╣
║Name:_________║
╠═══════════╣
║Pass:__________║
║ [Ok] [No]_____║
╚═══════════╝Curiousity only injured the cat.
I finished it off..
Muahahaha...

try this
put whatever you want to be run when correct name and password are entered, between the label continue and the "goto end" line
i suppose you already know that the 3 files
wbat.com, w.bat and wbat.ini all have to be in a directory that is in your path
@echo off
set name=
set pass=
cls
call w.bat box @%0:input
goto endofbox
:input [x]
Please Enter Your Name and PasswordName [$ name ]
Password [$ pass ]
[ Okay ] [ Cancel ]
:endofbox
if errorlevel 2 goto end
if not #%name%==#yourname goto invalid
if not #%pass%==#yourpassword goto invalid
:continue
REM Put your stuff here
goto end
:invalid
echo.
echo Invalid Name or Password
echo.
:endi wanna be a hacker

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |