home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d8xx
/
d827
/
askreq.lha
/
AskReq
/
Example1.bat
< prev
next >
Wrap
DOS Batch File
|
2001-02-25
|
1KB
|
41 lines
;----------- Batch file
Set ANSW `AskReq M "Please tell me your name,|so I know where you are!" S`
; Opens a requester with only a string gadget and two lines of text
; The result will be saved in the variable ANSW
Set AGE `AskReq M "And now tell me your age.|Are you really old enough to ask|me something :-| ?" I`
; Opens a requester with only an integer gadget and three lines of text
; The result will be saved in the variable AGE
AskReq M "So I have got your datas I will now Proceed"
; Just a notify requester
; Now we ask the user if the datas are really correct.
Set ANSW `AskReq M "You told me your name|Is this really your correct name ?" S G $ANSW POS OKAY NEG "FORGET IT"`
If $ANSW EQ "" ; No name specified
echo "You want to stay anonymous"
Else
echo "You name is"
echo $ANSW
Endif
Set AGE `AskReq M "You told me your age|Is this really your age ?" I G $AGE POS OKAY NEG "FORGET IT"`
If $AGE EQ "" ; No age specified
echo "You won`t tell me your age"
return 5
Else
echo "You are"
echo $AGE
echo "years old"
Endif
echo "Thank You " $ANSW " for your datas"
;----------- END