home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
BCHREF.ZIP
/
NBWIN.WBT
< prev
next >
Wrap
Text File
|
1992-05-22
|
2KB
|
62 lines
;*** THIS IS THE NBW 1.2 VERSION OF NBWIN.WBT ***
; REARRANGES DIALOGS FOR MAXIMUM VISIBILITY
run("winplace.wbt","")
; CheckConfigStatus checks whether NBW has been configured or not.
:CheckConfigStatus
File=fileopen("ndw.ini","READ")
Counter=0
:ReadLoop
ignoreinput(@yes)
if Counter==0 then display("1","Advisor","Checking Norton Backup Status...")
Counter=Counter+1
Line=fileread(File)
if Line=="Program Configured=0" then goto Initial
if Line=="Compatibility Test=1" then goto Initial
if Line=="Compatibility Test=0" then goto Initial
if Line=="Compatibility Test=2" then goto Main
if Counter==15 then Counter=0
if Line!="*EOF*" then goto ReadLoop
fileclose(File)
:Initial
ignoreinput(@on)
crlf=strcat(num2char(13),num2char(10))
display("6","Advisor",strcat("Norton Backup has not been configured.",crlf,"You MUST configure Norton Backup before running this tutorial."))
ignoreinput(@no)
display("5","Advisor",strcat("Please configure Norton Backup 1.2 and restart the tutorial.",crlf,"The Norton Backup 1.2 tutorial will not ext."))
goto ReallyExit
:Main
;** This is the main menu **
dialogbox ("Advisor","main.wbd")
if MainChoice==1 then goto StartDemo
if Mainchoice==2 then goto Introduction
if Mainchoice==3 then goto Exit
:Introduction
display ("2","Advisor","Now opening Introduction Text Box")
textbox ("Advisor","intro.txt")
goto Main
:StartDemo
dialogbox ("Advisor","run.wbd") ;open tutorial sub-section menu
if ChooseLesson==1 then call ("loadnbw.wbt"," ")
if ChooseLesson==2 then call ("config.wbt"," ")
if ChooseLesson==3 then call ("back.wbt"," ")
if ChooseLesson==4 then call ("restore.wbt"," ")
if ChooseLesson==5 then call ("compare.wbt"," ")
if ChooseLesson==6 then goto Main
goto Main
:Exit
YesNo=askyesno("Advisor","Are you sure?")
if YesNo==@yes then goto ReallyExit
goto Main
:ReallyExit
exit