home *** CD-ROM | disk | FTP | other *** search
- set v_bootdrv "C:"
- set v_bootdir "\"
- set v_qafile "SCANDOS.TXT"
-
- set fun_diagsecs type long $secs
- set fun_diagdlg type str ""
-
- menu MAIN at 0,0 dims 25,80 bc blue tc whi bo no na " Media Vision Diagnostics Program "
- runscript ReadINSTALLINIFILE
- text at ,2 "MV DIAG"
- box at ,2 dims 0,7 bo do
- text
- text "Use this program to diagnose troubles with the configuration of "
- text "the Media Vision sound card with your system."
-
- box at 10,-1 dims 11,36 bo do sh
- item at ,-1 dims 1,32 " Quick Config " menu QCFG
- item at ,-1 dims 1,32 " Quick Config CDROM " menu TESTCD
- box at ,-1 dims 0,32 border single
- item at ,-1 dims 1,32 " Look at ${v_bootdrv}${v_bootdir}CONFIG.SYS " execute "pg ${v_bootdrv}${v_bootdir}config.sys"
- item at ,-1 dims 1,32 " Look at ${v_bootdrv}${v_bootdir}AUTOEXEC.BAT " execute "pg ${v_bootdrv}${v_bootdir}autoexec.bat"
- item at ,-1 dims 1,32 " Look at $v_winpath\SYSTEM.INI " execute "pg $v_winpath\system.ini"
- item at ,-1 dims 1,32 " More Interesting Information " script MoreInterestingInformation
- box at ,-1 dims 0,32 border single
- item at ,-1 dims 1,32 " Return To DOS " return 1
-
- hotkey F1 DIAGHelp
- hotkey F2 DIAGAbout
- hotkey F3 DIAGExit
-
- box at 22,0 dims 3,80 border single
- item script diagfun everytime
-
- include qcfg.dat
- include tcd.dat
-
-
- script diagfun
- local cursecs type long $secs
- if isless $cursecs $fun_diagsecs return
-
- set fun_diagdlg "$fun_diagdlg" - "*\n"
- if ! $_strop then
- display " " at 23,2 dims 1,77 background blue textcolor white
- set fun_diagdlg type str `file diag.dlg
- if $fun_diagsecs display fun_diagdlg at 23,2 dims 1,77 background blue textcolor white
- set fun_diagsecs $cursecs + 4
- else
- set fun_diagsecs $cursecs + 4
- display fun_diagdlg at 23,2 dims 1,77 background blue textcolor white
- endif
- return
-
-
-
- script MoreInterestingInformation
- if not isfile $v_qafile runmenu RunQuickConfigFirst return
-
- set x4 type str `file $v_qafile
- set x4 "$x4" - "*Interrupt Assignments" - "Hardware Configuration*$$"
- set x4 "Interrupt Assignments ${x4}"
- display x4 at 1,1 dims 18,22 background white textcolor black
-
- set x4 type str `file $v_qafile
- set x4 "$x4" - "*DMA Channel Usage" - "Interrupt Assignments*$$"
- set x4 "DMA Channel Usage ${x4}"
- display x4 at 1,28 dims 9,26 background white textcolor black
- return
-
- menu RunQuickConfigFirst at -1,-1 bc re tc wh bo do sh name " Whoops! "
- text " Run 'Quick Config' first, in order to analyze the system."
- text
- text " This creates the 'XXXXXXXX.XXX' file, which is not found."
- display v_qafile at 3,21 using "%-12s"
-
-
-
- menu DIAGHelp dims 25,80 bc bla tc wh bo do na " Media Vision Diagnostics Help "
- runscript loadDIAGHelp
- display at ,2 dims 20,70 textDIAGHelp
- item at 23,1 " Press ENTER to Return To Main Program " set "textDIAGHelp" return 1
- item "" Return 1
- script loadDIAGHelp
- if isfile DIAG.hlp then
- set textDIAGHelp type str `file DIAG.HLP
- else
- set textDIAGHelp type str "Sorry: missing DIAG.HLP, can not provide help."
- endif
- return
-
- menu DIAGAbout dims 25,80 bc bla tc wh bo do na " About Media Vision Diagnostics "
- runscript loadDIAGAbout
- display at ,2 dims 20,70 textDIAGAbout
- item at 23,1 " Press ENTER to Return To Main Program " set "textDIAGHelp" return 1
- item "" Return 1
- script loadDIAGAbout
- if isfile DIAG.hlp then
- set textDIAGAbout type str `file DIAG.ABT
- else
- set textDIAGAbout type str "Sorry: missing DIAG.ABT, can not provide help."
- endif
- return
-
- menu DIAGExit
- item "" return 2
-
-