Dear,

We have add some debugging code to it with our tool kixstrip, which
you can find on our site. See f.e. Summary of Site page.

Our call was: kixstrip input.kix output.kix /debug
The output will be written to the file %tmp%\kixdebug.txt
Result:
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+"/4.00e 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)))+" -&gt; "+$_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"? FUNCTION yamd($driveletter, $unc, OPTIONAL $label, OPTIONAL $icon, OPTIONAL $delete)
?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? DIM $di, $hexchar, $hexlabel, $labelkey, $labelpath, $loop, $os, $readcache, $subcmd, $timeout, $uncascchar, $uncasclabel
?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? $timeout=0
?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? $labelpath=""
?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? $di="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons"
?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? $labelkey="HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? SELECT
?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? CASE
@producttype = "Windows XP Professional" $os="WinXP" $subcmd="NET USE"
?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? CASE
@producttype = "Windows 2000 Professional" $os="Win2K" $subcmd="NET USE"
?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? CASE
@producttype = "Windows NT Workstation" $os="WinNT" $subcmd="SUBST"
?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? ENDSELECT
?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL '%comspec% /C $subcmd $driveletter: /d 1&gt;nul 2&gt;&1'
?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? IF $delete
?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? IF $os="Win2k"
?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? $=DelTree("$LABELKEY\MountPoints\$DRIVELETTER")
?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? $=DelTree("$DI\$DRIVELETTER")
?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? SHELL '%comspec% /C $subcmd $driveletter: "$unc" 1&gt;NUL 2&gt;&1'
?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"? IF Exist("$DRIVELETTER:\")=0
?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? RETURN
?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? IF $os="Win2k"
?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? IF $label
?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? FOR $loop = 1 TO Len($label)
?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? $hexchar=DecToHex(Asc(Substr("$LABEL",$loop,1)))
?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? $hexlabel=$hexlabel+$hexchar+"00"
?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"? NEXT
?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? WHILE Len($hexlabel) < 128
?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? $hexlabel=$hexlabel+"00"
?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? LOOP
?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? :waitforreg
?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? $readcache=ReadValue("$LABELKEY\MountPoints\$DRIVELETTER\_LABELFROMREG","CACHE")
?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? IF @error OR $="$HEXLABEL"
?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"? SLEEP(1)
?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MountPoints\$DRIVELETTER\_LABELFROMREG","VERSION","3",reg_dword)
?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MountPoints\$DRIVELETTER\_LABELFROMREG","CACHE","$HEXLABEL",reg_binary)
?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? GOTO waitforreg
?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MountPoints\$DRIVELETTER\_LABELFROMREG","VERSION","3",reg_dword)
?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MountPoints\$DRIVELETTER\_LABELFROMREG","CACHE","$HEXLABEL",reg_binary)
?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"? IF $icon
?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$DI\$DRIVELETTER")
?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$DI\$DRIVELETTER\DEFAULTICON")
?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$DI\$DRIVELETTER\DEFAULTLABEL")
?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$DI\$DRIVELETTER\DEFAULTICON","","$ICON",reg_sz)
?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$DI\$DRIVELETTER\DEFAULTLABEL","","$LABEL",reg_sz)
?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? $=DelTree("$DI\$DRIVELETTER")
?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? IF $os="winxp"
?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? IF $label
?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? FOR $loop = 1 TO Len($unc)
?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? $uncascchar=Substr("$UNC",$loop,1)
?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 72-"+@time+"-"+$_debug_name+"- @error @serror"? IF $uncascchar="\"
?"- 73-"+@time+"-"+$_debug_name+"- @error @serror"? $uncascchar="#"
?"- 74-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 75-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 76-"+@time+"-"+$_debug_name+"- @error @serror"? $uncasclabel=$uncasclabel+$uncascchar
?"- 77-"+@time+"-"+$_debug_name+"- @error @serror"? NEXT
?"- 78-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 79-"+@time+"-"+$_debug_name+"- @error @serror"? $readcache=WriteValue("$LABELKEY\MountPoints2\$UNCASCLABEL","_LABELFROMREG","$LABEL",reg_sz)
?"- 80-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 81-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 82-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 83-"+@time+"-"+$_debug_name+"- @error @serror"? $readcache=WriteValue("$LABELKEY\MountPoints2\$UNCASCLABEL","_LABELFROMREG","$LABEL",reg_sz)
?"- 84-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 85-"+@time+"-"+$_debug_name+"- @error @serror"? IF $icon
?"- 86-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL")
?"- 87-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL\DEFAULTICON")
?"- 88-"+@time+"-"+$_debug_name+"- @error @serror"? $=AddKey("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL\DEFAULTLABEL")
?"- 89-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL\DEFAULTICON","","$ICON",reg_sz)
?"- 90-"+@time+"-"+$_debug_name+"- @error @serror"? $=WriteValue("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL\DEFAULTLABEL","","$LABEL",reg_sz)
?"- 91-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE
?"- 92-"+@time+"-"+$_debug_name+"- @error @serror"? $=DelTree("$LABELKEY\MOUNTPOINTS2\$UNCASCLABEL")
?"- 93-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 94-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF
?"- 95-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 96-"+@time+"-"+$_debug_name+"- @error @serror"? ENDFUNCTION
?"- 97-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 98-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 99-"+@time+"-"+$_debug_name+"- @error @serror"? yamd ("S","\\MD-DC01\systeembeheer$","Systeembeheer")
?"- 100-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 101-"+@time+"-"+$_debug_name+"- @error @serror"?
?"- 102-"+@time+"-"+$_debug_name+"- @error @serror"? yamd ("I","\\MD-DC01\Installation & Support$","Installation & Support")

?"------- end-"+@time+"-"+$_debug_name+"- @error @serror"
? "-"
? "-"+LCASE(@day)+" "+@date+" "+@time+"- kixtart "+@kix+"/4.00e 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)
;
; fri 14-feb-2003 23:01:44 (kix 4.20 vs 4.00e)
;
;Informative KIXSTRIP: no errors found (input=102 output=102 skip=0).
;
;Summary KIXSTRIP: block structures
; - do:until [0:0]
; - for|each:in|to:step|next [2|0:0|2:0|2]
; - function:endfunction [1:1]
; - if:else:endif [11:2:11]
; - select:case:endselect [1:3:1]
; - while:loop [1:1]
;Informative KIXSTRIP: 16 block_structures found.
;Informative KIXSTRIP: 1 UDF found.
;Informative KIXSTRIP: 1 label 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 ENDFUNCTION
;Informative KIXSTRIP: 1 FUNCTION
;Informative KIXSTRIP: 1 GOTO
;Informative KIXSTRIP: 2 RETURN
;Informative KIXSTRIP: 2 SHELL
;Informative KIXSTRIP: 1 SLEEP
;
;($end)

Please return the results of file %tmp%\kixdebug.txt to the board.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA