#69049 - 2002-12-02 05:08 AM
Re: Inconsistencies with Win9x running login script
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
For debugging your code you can use also our kixstrip tool. The file %tmp%\kixdebug.txt will contain the results.
The result of call: kixstrip input.kix output.kix /debug
code:
;CLS IF (instr("-3.0x-3.1x-3.2x-3.3x-","-"+substr(@kix,1,3)+"x-") <> 0) IF MessageBox("sorry, your kixtart "+@kix+" release is too old."+CHR(13)+CHR(10)+CHR(13)+CHR(10)+" please upgrade.","KiXtart "+@kix+" info",4112,300) ENDIF EXIT ENDIF COLOR C+/N ;AT (1,1) " "
$_debug_file="kixdebug.txt" ; - %tmp% directory - IF (len($_debug_file) <> 0) IF (substr("%tmp%",len("%tmp%"),1) = "\") $_debug_file="%tmp%"+$_debug_file ELSE $_debug_file="%tmp%\"+$_debug_file ENDIF ENDIF ;$_debug_file="c:\kixdebug.txt" IF RedirectOutput($_debug_file) ENDIF
? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/3.20e script starting" IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF ? "-" IF ("$_debug_already_starting" <> "yes") ? "-curdir: "+LCASE(@curdir) ? "-scriptdir: "+LCASE(@scriptdir) IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) ? "-scriptname: "+LCASE(@scriptname) ENDIF ? "-startdir: "+LCASE(@startdir) ? "-" ? "-userid: "+LCASE(@userid)+"/"+LCASE(@wuserid) ? "-user priv: "+LCASE(@priv) IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0) ? "-version: inwin="+@inwin+"/dos="+@dos+"/productsuite="+@productsuite+"/producttype="+@producttype+"/csd="+LTRIM(RTRIM(@csd)) ELSE ? "-version: inwin="+@inwin+"/dos="+@dos ENDIF ? "-" IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) ? "-"+@cpu+" (memory "+MemorySize()+" MB)" ? "-" ENDIF ENDIF
$_debug_temp_name="" ; -format: yyyymmdd_hhmmss.sss_999 scriptname- IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") <> 0) OR (Val(substr(@kix,1,1)) >= 4) IF (instr("-4.xx-","-"+substr(@kix,1,2)+"xx-") <> 0) $_debug_temp_name=@msecs SELECT CASE (len($_debug_temp_name) = 1) $_debug_temp_name="00"+$_debug_temp_name CASE (len($_debug_temp_name) = 2) $_debug_temp_name="0"+$_debug_temp_name ENDSELECT $_debug_temp_name="."+$_debug_temp_name IF Srnd(@msecs) ENDIF SLEEP 0.050 ELSE IF Srnd((-1)*32767/(substr(@time,7,2)+1)) ENDIF SLEEP 1 ENDIF $_debug_temp_name=substr(@date,1,4)+substr(@date,6,2)+substr(@date,9,2)+"_"+substr(@time,1,2)+substr(@time,4,2)+substr(@time,7,2)+$_debug_temp_name+"_"+Rnd() IF (len($_debug_temp_name) < 25) $_debug_temp_name=substr($_debug_temp_name+" ",1,25) ENDIF IF (instr("-4.1x-","-"+substr(@kix,1,3)+"x-") <> 0) IF (len(@scriptname) < 12) $_debug_temp_name=$_debug_temp_name+" "+substr(@scriptname+" ",1,12) ELSE $_debug_temp_name=$_debug_temp_name+" "+@scriptname ENDIF ENDIF ENDIF
IF ("$_debug_already_starting" <> "yes") ? "-debug file: "+$_debug_file ? "-debug name: "+LCASE($_debug_temp_name) ELSE IF (len($_debug_temp_name) <> 0) ? "-debug: "+LTRIM(RTRIM(LCASE($_debug_temp_name)))+" -> "+$_debug_file ELSE ? "-debug-file: "+$_debug_file ENDIF ENDIF
IF (instr("-3.6x-","-"+substr(@kix,1,3)+"x-") = 0) AND (Val(substr(@kix,1,1)) < 4) GOTO _debug_starting_point ENDIF DIM $_debug_name ; -create local variable- :_debug_starting_point $_debug_name=LCASE($_debug_temp_name) $_debug_already_starting="yes" ? "-" ?"----- start-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 1-"+@time+"-"+$_debug_name+"- @error @serror"? CLS ?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? $userid=@userid ?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? $fullname=@fullname ?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? $workstation=@wksta ?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? $domain=@domain ?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? IF @inwin = 1 ?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? GOTO WINNT ?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE ?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? GOTO WIN9X ?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? :winnt ?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /del /persistent ?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: /del /persistent ?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? USE H: /del /persistent ?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /del /persistent ?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /del /persistent ?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: /del /persistent ?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: /del /persistent ?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /del /persistent ?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /del /persistent ?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /del /persistent ?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: /del /persistent ?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /del /persistent ?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /del /persistent ?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? USE W: /del /persistent ?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: /del /persistent ?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: /del /persistent ?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: /del /persistent ?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP("Domain Users") = 1 ?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\server1\common" /persistent ?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP("IT") = 1 ?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"? USE q: "\\server1\it" /persistent ?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: "\\server2\installs" /persistent ?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? GOTO END ?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"? :win9x ?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? USE F: /del /persistent ?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? USE G: /del /persistent ?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? USE H: /del /persistent ?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"? USE J: /del /persistent ?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? USE K: /del /persistent ?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? USE L: /del /persistent ?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? USE M: /del /persistent ?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? USE N: /del /persistent ?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"? USE P: /del /persistent ?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? USE S: /del /persistent ?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? USE T: /del /persistent ?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? USE U: /del /persistent ?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"? USE V: /del /persistent ?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"? USE W: /del /persistent ?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? USE X: /del /persistent ?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? USE Y: /del /persistent ?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? USE Z: /del /persistent ?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP("Domain Users") = 1 ?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? USE O: "\\server1\Common" /persistent ?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? IF INGROUP("IT") = 1 ?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"? USE q: "\\server1\it" /persistent ?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: "\\server2\installs" /persistent ?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? CLS ?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? :end ?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT
?"------- end-"+@time+"-"+$_debug_name+"- @error @serror" ? "-" ? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/3.20e script ending" IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF ? "-" IF RedirectOutput("CON") ENDIF COLOR C+/N ? ? "Informative KIX "+@kix+":"+" debug info see "+CHR(34)+$_debug_file+CHR(34) IF (Val(substr(@kix,1,1)) >= 4) IF (len(@scriptname) <> 0) " ("+LCASE(@scriptname)+")" ENDIF ENDIF IF RedirectOutput($_debug_file) ENDIF ;($begin) ; ; mon 02-dec-2002 05:11:59 (kix 4.10 vs 3.20e) ; ;Informative KIXSTRIP: input=71 output=71 skip=0 ; ;Warning KIXSTRIP: 2 errors in block structure(s). missing statement(s). ; - do:until [0:0] ; - for|each:in|to:step|next [0|0:0|0:0|0] ; - function:endfunction [0:0] ; -ERROR- - if:else:endif [5:1:3] ; - select:case:endselect [0:0:0] ; - while:loop [0:0] ;Warning KIXSTRIP: some lines contains errors or possible errors. ;Informative KIXSTRIP: 5 block_structures found. ;Informative KIXSTRIP: no UDF's found. ;Informative KIXSTRIP: 3 labels found. ;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE ;Informative KIXSTRIP: 1 EXIT ;Informative KIXSTRIP: 3 GOTO ;Informative KIXSTRIP: 40 USE ; ;($end) ;($begin) ; ; ;($end)
greetings.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1452 anonymous users online.
|
|
|