#37145 - 2003-02-28 10:29 PM
Re: Script won't run for 1 particular user
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
First some questions: - which client/server combination running? - where are the scripts located? netlogon or another directory? - what is the different with the other users? others running another OS/ - are there specific elements on this client? - it look likes your BATch file isn't presented in a full way. please put the complete BATch on the board. - also we see only a part of your script. please put it also to get full feedback.
We add some debugging code to your script. It was done by our tool kixstrip, which you can find our site (f.e. "Summary of Site" page). With the call: kixstrip input.kix output.kix /debug we did it.
Please modify in this specific case your BATch file to
code:
@echo off %0\..\kix32.exe %0\..\nypa-debug.kix @echo off
Please return the output of file %tmp%\kixdebug.txt to the board.
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"? ;*********************************************************** ?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? ; nypa.kix (formerly kixtart.scr) ?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? ;*********************************************************** ?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? ; Put users in the "Domain Diag" global group to ?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? ; display troubleshooting info ?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? ;*********************************************************** ?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Domain Diag") ?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? CALL @ldrive + "diag.kix" ?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? ;*********************************************************** ?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ; The following section is for all users in the domain. ?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? ; DO NOT EDIT THIS SECTION unless all LAN admins have agreed ?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? ; on the change, and it has been tested and approved by WPO ?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? ;*********************************************************** ?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Domain Users") ?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? ;Greet the user based on the time of day ?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? $fn = @fullname ?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? $cm = InStr($fn,",") ?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 28-"+@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) ; ; fri 28-feb-2003 22:10:56 (kix 4.20 vs 4.00e) ; ;Informative KIXSTRIP: input=28 output=28 skip=0 ; ;Warning KIXSTRIP: 1 error in block structure. 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 [2:0:1] ; - select:case:endselect [0:0:0] ; - while:loop [0:0] ;Warning KIXSTRIP: some lines contains errors or possible errors. ;Informative KIXSTRIP: 2 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 CALL ; ;($end)
(btw: above problem was fix with our modification in 27th line)
Please run it and return output to the board. greetings.
btw: symbol on our pages has been linked to related http://kixtart.org topic.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 553 anonymous users online.
|
|
|