MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
First some remarks: - you never define the variable $s in your script. - it is possible that you are trying to map same drive twice. please remove always a mapping before (re)mapping it.
We have extend your script a little bit. We have add debugging code to your script with our tool kixstrip, which you can find on our site (Home - Kix tools or Home - Kix downloads or Summary of Site). Also a pdf document is available.
Our call was: kixstrip input.kix output.kix /debug /show_structure[/b]
During running the output will be written to the file %tmp%\kixdebug.txt Please correct also our line
$s="@lserver" ; <+++++++++
Please return the contents of file %tmp%\kixdebug.txt to the board. Please inform us also about group-membership of user used.
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)))+" -> "+$_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"? ?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR c+/w ?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? Box (0,0,24,79,grid) ; 'background grid' ?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR c/w ?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? Box (7,11,21,71,Å) ; 'shadow' of the box ?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR c+/w ?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? Box (6,10,20,70,full) ?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR n+/w ?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? At ( 7,20) "Userid : " ; display some text strings ?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? At ( 9,20) "Full name : " ?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? At (10,20) "Privilege : " ?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? At (11,20) "Workstation : " ?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? At (12,20) "Domain : " ?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? At (13,20) "Logon Server : " ?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR n+/w ?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? At ( 7,40) @userid ; ...and some macro's ?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? At ( 9,35) @fullname ?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? At (10,35) @priv ?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? At (11,35) @wksta ?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? At (12,35) @domain ?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? At (13,35) @lserver ?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? At (16,20) "Welcome To The xxxxx Network !" ?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? At (17,20) "Today Is "+@date ?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? At (18,20) "Unauthorized Access is Prohibited" ?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? SLEEP 3 ?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR w+/n ?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"? $s="@lserver" ; <+++++++++ ?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? ; Map drives here ?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? USE f: $home ?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? USE g: "\\ntmain\sys" ?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? USE m: "$s\mail" ?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? USE w: "$s\shardata" ?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"? DEBUG ON ?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("MORTGAGE_GROUP") ?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? USE n: "$s\MTG" ?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("FINANCE") ?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: "$s\FINANCE" ?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("2NDFLRSEC") ?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: "$s\SECRETAR" ?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? USE lpt2 "$s\2ndFLsec" ?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("MTGDATA") ?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? USE l: "$s\MORTGAGE" ?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("COMMERCIAL_LOANS") ?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\COMMERCI" ?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("DEPOSIT_ADM") ?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\DEPOSADM" ?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("LOANSERV") ?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\LOANSERV" ?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("BRNCHMGT") ?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? USE j: "$s\BRNCHMGT" ?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 72-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 73-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("1STFLOOR") ?"- 74-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\1STFLOOR" ?"- 75-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 76-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 77-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("INFOSYS") ?"- 78-"+@time+"-"+$_debug_name+"- @error @serror"? USE j: "$s\INFOSYS" ?"- 79-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 80-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 81-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("AUDIT") ?"- 82-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\AUDIT" ?"- 83-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 84-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 85-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("INVESTMENT") ?"- 86-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "$s\INVESTMT" ?"- 87-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 88-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 89-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("HUMAN_RESOURCES") ?"- 90-"+@time+"-"+$_debug_name+"- @error @serror"? USE l: "$s\HR" ?"- 91-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 92-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 93-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("Consumer") ?"- 94-"+@time+"-"+$_debug_name+"- @error @serror"? USE o: "$s\Consumer" ?"- 95-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 96-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 97-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("DepAdm") ?"- 98-"+@time+"-"+$_debug_name+"- @error @serror"? USE o: "$s\depadm" ?"- 99-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 100-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 101-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("Compliance") ?"- 102-"+@time+"-"+$_debug_name+"- @error @serror"? USE j: "$s\Compliance" ?"- 103-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 104-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 105-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup ("Comscan") ?"- 106-"+@time+"-"+$_debug_name+"- @error @serror"? USE k: /delete /persistent ?"- 107-"+@time+"-"+$_debug_name+"- @error @serror"? USE k: "$s\comscan" ?"- 108-"+@time+"-"+$_debug_name+"- @error @serror"? IF (@error <>0) ?"- 109-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Error Kix-user: problems during mapping. code @error (@error)" ?"- 110-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 111-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 112-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 113-"+@time+"-"+$_debug_name+"- @error @serror"? EXIT ?"- 114-"+@time+"-"+$_debug_name+"- @error @serror"?
?"------- 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) ; ; wed 05-feb-2003 10:21:42 (kix 4.20 vs 4.00e) ; ;Informative KIXSTRIP: no errors found (input=114 output=114 skip=0). ; ;Summary KIXSTRIP: block structures ; - do:until [0:0] ; - for|each:in|to:step|next [0|0:0|0:0|0] ; - function:endfunction [0:0] ; - if:else:endif [18:0:18] ; - select:case:endselect [0:0:0] ; - while:loop [0:0] ;Informative KIXSTRIP: 18 block_structures found. ;Informative KIXSTRIP: no UDF's found. ;Informative KIXSTRIP: no 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 DEBUG ;Informative KIXSTRIP: 1 EXIT ;Informative KIXSTRIP: 1 SLEEP ;Informative KIXSTRIP: 23 USE ; ;($end)
greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic.
|