Computing.Net > Forums > Disk Operating System > WBAT... Menu creation...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

WBAT... Menu creation...

Reply to Message Icon

Name: go_places_puterwize
Date: March 20, 2006 at 18:52:20 Pacific
OS: DOS 7.10
CPU/Ram: P4/256MB
Product: Gateway/Midtower2002
Comment:

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...



Sponsored Link
Ads by Google

Response Number 1
Name: go_places_puterwize
Date: March 20, 2006 at 19:16:32 Pacific
Reply:

Heres a more precise mental image...
╔═══════════╗
║Login__________║
╠═══════════╣
║Name:_________║
╠═══════════╣
║Pass:__________║
║ [Ok] [No]_____║
╚═══════════╝

Curiousity only injured the cat.
I finished it off..
Muahahaha...


0

Response Number 2
Name: abdul_ahad
Date: March 21, 2006 at 07:51:50 Pacific
Reply:

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 Password

Name [$ 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.
:end

i wanna be a hacker


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: WBAT... Menu creation...

Boot menu recommendation & FAT16\FAT32 www.computing.net/answers/dos/boot-menu-recommendation-amp-fat16fat32/5748.html

Create a Menu www.computing.net/answers/dos/create-a-menu-/3225.html

DOS menu in batch file www.computing.net/answers/dos/dos-menu-in-batch-file/9382.html