Dear,Before we can give a full report some remarks and questions:
- your script a missing a lot of endif statements and one loop
statement.
See our output created by kixstrip
code:
Kixstrip 4.00 (vs 2.29e) (c) MCA - scripting@wanadoo.nl - 2000, 2001 1 ....................E(384)
Warning KIXSTRIP: 35 line incomplete "single quotation".
Warning KIXSTRIP: 35 line incompleted.
Kixstrip 4.00 (vs 2.29e) 7.80 (sec)
input 384 zxx.txt
output 384 zxx (skip: 0 blocks: 0 labels: 42)
block_check -ERROR- block_errors=22
block_structures=25 labels=42
tab=2
Warning KIXSTRIP: 22 errors in block structure(s). missing statement(s).
- do:until [2:2]
- for|each:in|to:step|next [0|0:0|0:0|0]
- function:endfunction [0:0]
-ERROR- - if:else:endif [21:21:0]
- select:case:endselect [1:24:1]
-ERROR- - while:loop [1:0]
25 block_structures found.
Informative KIXSTRIP: no UDF's found.
Warning KIXSTRIP: 1 line is incompleted.
rerun program with option "/block_check /show_errors".
active options:
/Block_Check /Headers /Print /TAB=2 /Translate
inactive options:
/NoCombine /NoDebug /NoPerformance /NoProgress /NoShow_Errors /NoShow_Structure
/NoLicense: (not.specified)
- your code is very strange
code:
gosub "desnt"
:desnt
why did you choose gosub instead of f.e. goto. each gosub routine
ends with a QUIT statement.
- quotation in line if @lserver = 'dms_beta" is incorrect.
- RUN X:\program.exe will be better like run '%comspec% /c x:\program.exe'.
We have restyle your code. Our versions is:
code:
; LCS_LOGON.kix
;
; 11/1/2001
BREAK ON
SETTIME \\adm_nm
? @lserver
SLEEP 3 IF @inwin = 1
GOSUB "nt"
ELSE
GOSUB "9x"
ENDIF
EXIT
:nt
SELECT
CASE
@lserver = 'adm_nm' OR @lserver = 'anna'
GOSUB "adm"
CASE
@lserver = 'bass'
GOSUB "b"
CASE
@lserver = 'bedfordhills'
GOSUB "c"
CASE
@lserver = 'dearington_nt'
GOSUB "d"
CASE
@lserver = 'dms_beta'
GOSUB "e"
CASE
@lserver = 'ecg_data'
GOSUB "f"
CASE
@lserver = 'heritage_elem'
GOSUB "g"
CASE
@lserver = 'hhs_data'
GOSUB "h"
CASE
@lserver = 'kes_nt'
GOSUB "j"
CASE
@lserver = 'linkhorne_elem'
GOSUB "l"
CASE
@lserver = 'linkhornemiddle' OR @lserver = 'linkhorne_lab'
GOSUB "m"
CASE
@lserver = 'paulmunro'
GOSUB "o"
CASE
@lserver = 'payne'
GOSUB "rsp"
CASE
@lserver = 'perrymont_nt' OR @lserver = 'pes_comp'
GOSUB "q"
CASE
@lserver = 'pride'
GOSUB "r"
CASE
@lserver = 'sanduskyelem'
GOSUB "s"
CASE
@lserver = 'sanduskymiddle' OR @lserver = 'sand_mid_lab'
GOSUB "t"
CASE
@lserver = 'sheffield'
GOSUB "u"
CASE
@lserver = 'tcm_alpha' OR @lserver = 'tcm_data'
GOSUB "v"
CASE
@lserver = 'mnt_nt'
GOSUB "w"
CASE
1
;
ENDSELECT
EXIT
:w9x
DIM $menu[26]
$menu[ 0] = "A. Administration Building"
$menu[ 1] = "B. Bass Elementary"
$menu[ 2] = "C. Bedford Hills Elementary"
$menu[ 3] = "D. Dearington Elementary SFI"
$menu[ 4] = "E. Dunbar Middle SFI"
$menu[ 5] = "F. EC Glass High"
$menu[ 6] = "G. Heritage Elementary"
$menu[ 7] = "H. Heritage High"
$menu[ 8] = "I. Hutcherson Early Learning Center"
$menu[ 9] = "J. Kizer Elementary"
$menu[10] = "K. LAUREL Regional Program"
$menu[11] = "L. Linkhorne Elementary"
$menu[12] = "M. Linkhonre Middle"
$menu[13] = "N. Middle School Learning Center"
$menu[14] = "O. Paul Munro Elementary"
$menu[15] = "P. Payne Elementary"
$menu[16] = "Q. Perrymont Elementary"
$menu[17] = "R. Pride Center"
$menu[18] = "S. Sanduksy Elementary"
$menu[19] = "T. Sandusky Middle"
$menu[20] = "U. Sheffield Elementary"
$menu[21] = "V. TC Miller Elementary SFI"
$menu[22] = "W. Transportation/Maintenance"
:start
WHILE 1
CLS
COLOR y+/n
$count = 0
DO
At ($count,22) $menu[$count]
$count=$count+1
UNTIL $count > 22
COLOR w/n
At (24,22) "What school do you want to access?"
DO
GET $jump
UNTIL $jump = 'X' OR ($jump >= 'a' AND $jump <= 'W')
SELECT
CASE
$jump = 'a'
GOSUB "adm"
CASE
$jump = 'b'
GOSUB "bes"
CASE
$jump = 'c'
GOSUB "bhs"
CASE
$jump = 'd'
GOSUB "des"
CASE
$jump = 'e'
GOSUB "dms"
CASE
$jump = 'f'
GOSUB "ecg"
CASE
$jump = 'g'
GOSUB "hes"
CASE
$jump = 'h'
GOSUB "hhs"
CASE
$jump = 'i'
GOSUB "helc"
CASE
$jump = 'j'
GOSUB "kes"
CASE
$jump = 'k'
GOSUB "lrl"
CASE
$jump = 'l'
GOSUB "les"
CASE
$jump = 'm'
GOSUB "lms"
CASE
$jump = 'n'
GOSUB "mslc"
CASE
$jump = 'o'
GOSUB "pme"
CASE
$jump = 'p'
GOSUB "rsp"
CASE
$jump = 'q'
GOSUB "pes"
CASE
$jump = 'r'
GOSUB "apc"
CASE
$jump = 's'
GOSUB "ses"
CASE
$jump = 't'
GOSUB "sms"
CASE
$jump = 'u'
GOSUB "shf"
CASE
$jump = 'v'
GOSUB "tcm"
CASE
$jump = 'w'
GOSUB "tran"
CASE
$jump = 'x'
EXIT 0
ENDSELECT
LOOP
EXIT
:adm
USE x: \\adm_iis\vplogon
USE y: \\adm_nm\bindview
RUN x:\vplogon.bat
RUN y:\bvems\elogin\bvaudit.exe
QUIT
:bes
USE q: \\bes_tlc\cl1
USE l: \\bes_tlc\programs
USE m: \\bass\programs
USE x: \\bes_tlc\vplogon
USE y: \\bass\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:bhs
USE q: \\bhs_tlc\cl1
USE l: \\bhs_tlc\programs
USE m: \\bedfordhills\programs
USE x: \\bhs_tlc\vplogon
USE y: \\bedfordhills\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:bes
USE q: \\dearington_nt\cl1
USE l: \\dearington_nt\programs
USE x: \\dearington_nt\vplogon
USE y: \\dearington_nt\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:dms
USE h: \\hhs_programs\programs
USE p: \\dms_beta\aplus
USE q: \\dms_alpha\programs
USE x: \\dms_beta\vplogon
USE y: \\dms_beta\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:ecg
USE h: \\hhs_programs\programs
USE m: \\ecg_programs\programs
USE n: \\ecg_programs\englang
USE o: \\ecg_programs\englit
USE x: \\ecg_tech\vplogon
USE y: \\ecg_data\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:hes
USE q: \\hes_tlc\cl1
USE l: \\hes_tlc\programs
USE m: \\heritage_elem\programs
USE x: \\hes_tlc\vplogon
USE y: \\heritage_elem\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:hhs
USE l: \\hhs_tech\data
USE m: \\hhs_programs\programs
USE n: \\hhs_programs\englang
USE o: \\hhs_programs\englit
USE x: \\hhs_tech\vplogon
USE y: \\hhs_data\bindview
RUN y:\bvaudit
RUN x:\vplogon.bat
QUIT
:helc
QUIT
:kes
USE q: \\kes_tlc\cl1
USE l: \\kes_tlc\programs
USE m: \\kes_nt\programs
USE x: \\kes_nt\vplogon
USE y: \\kes_tlc\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:lrl
QUIT
:les
USE q: \\les_tlc\cl1
USE l: \\les_tlc\programs
USE m: \\linkhorne_elem\programs
USE x: \\les_tlc\vplogon
USE y: \\linkhorne_elem\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:lms
USE h: \\hhs_programs\programs
USE l: \\lms_nt\programs
USE p: \\linkhorne_lab\programs
USE x: \\lms_nt\vplogon
USE y: \\linkhorne_lab\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:mslc
QUIT
:pme
USE q: \\pme_tlc\cl1
USE l: \\pme_tlc\programs
USE m: \\paulmunro\programs
USE x: \\pme_tlc\vplogon
USE y: \\paulmunro\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:rsp
USE q: \\rsp_tlc\cl1
USE l: \\rsp_tlc\programs
USE m: \\payne\programs
USE x: \\payne\vplogon
USE y: \\payne\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:pes
USE l: \\pes_tlc\programs
USE m: \\perrymont_nt\programs
USE n: \\pes_apps\programs
USE q: \\pes_comp\cl1
USE x: \\pes_tlc\vplogon
USE y: \\perrymont_nt\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:apc
USE h: \\hhs_programs\programs
USE l: \\pride\programs
USE x: \\pride\vplogon
USE y: \\pride\bvaudit
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:ses
USE q: \\ses_tlc\cl1
USE l: \\ses_tlc\programs
USE m: \\sanduskyelem\programs
USE x: \\ses_tlc\vplogon
USE y: \\sanduskyelem\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:sms
USE h: \\hhs_programs\programs
USE l: \\sms_nt\programs
USE m: \\sanduskymiddle\programs
USE x: \\sms_nt\vplogon
USE y: \\sanduskymiddle\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:shf
USE q: \\shf_tlc\cl1
USE l: \\shf_tlc\programs
USE m: \\sheffield\programs
USE x: \\shf_tlc\vplogon
USE y: \\sheffield\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:tcm
USE q: \\tcm_alpha\cl1
USE l: \\tcm_alpha\programs
USE m: \\tcm_data\programs
USE x: \\tcm_data\vplogon
USE y: \\tcm_data\bindview
RUN y:\bvaudit.exe
RUN x:\vplogon.bat
QUIT
:tran
USE x: \\mnt_nt\vplogon
RUN x:\vplogon.bat
QUIT
:end
QUIT
greetings.