#33596 - 2002-11-27 05:34 AM
Working on NT/2000, not on 9x
|
adevenis
Lurker
Registered: 2002-11-27
Posts: 4
Loc: Armidale, NSW, Australia
|
Hi all,
I've been searching, but I can't seem to find anyone having the same problem:
I have setup KiXtart as per the manual (as far as I can tell).
I have:
Scipt1.bat
code:
@ECHO OFF \\Eugene\Netlogon\Kix32.exe test EXIT
and:
code:
[B]test.kix[/B] ; CLS ; small Color w+/n ? "UNE Students' Association" ; Color w+/n ; IF ((@time > "00:00:00") AND (@time < "12:00:00")) ? "Good Morning," ELSE IF ((@time >= "12:00:00") AND (@time < "18:00:00")) ? "Good Afternoon," ELSE ? "Good Evening," ENDIF ENDIF ; ? @fullname ? "Please Wait For Logon script Execution" ; ; Map Drives to Server "Eugene" ; USE H: /delete /persistent USE H: "\\Eugene\@userid" ? "Mapping Home Drive" ; USE I: /delete /persistent IF INGROUP("Domain Users") USE I: "\\Eugene\Global" ? "Mapping Global Drive" ENDIF USE J: /delete /persistent IF INGROUP("TUNE! FM Announcers") USE J: "\\Eugene\Announcer" ? "Mapping Drive: Announcer" ENDIF USE K: /delete /persistent IF INGROUP("TUNE! FM") USE K: "\\Eugene\TUNE! FM" ? "Mapping Drive: TUNE! FM" ENDIF USE L: /delete /persistent IF INGROUP("Neucleus") USE L: "\\Eugene\Neucleus" ? "Mapping Drive: Neucleus" ENDIF USE M: /delete /persistent IF INGROUP("Dental Clinic") USE M: "\\Eugene\Dental Clinic" ? "Mapping Drive: Dental Clinic" ENDIF USE N: /delete /persistent IF INGROUP("Finance and Admin") USE N: "\\Eugene\Finance and Admin" ? "Mapping Drive: Finance and Admin" ENDIF USE O: /delete /persistent IF INGROUP("Student Support") USE O: "\\Eugene\Student Support" ? "Mapping Drive: Student Support" ENDIF USE P: /delete /persistent IF INGROUP("Bookshop") USE P: "\\Eugene\Bookshop" ? "Mapping Drive: Bookshop" ENDIF USE Q: /delete /persistent IF INGROUP("Media") USE Q: "\\Eugene\Media" ? "Mapping Drive: Media" ENDIF USE R: /delete /persistent IF INGROUP("Lifesaver") USE R: "\\Eugene\Lifesaver" ? "Mapping Drive: Lifesaver" ENDIF
EXIT
The logon script is set on the NT4.0 Server to Script1.bat.
Loging on to NT and 2000 works fine, the drives are mapped, and all is good.
Under 9x (98 actually) the script fails to execute.
Any hints?
Thanks.
Andrew
|
|
Top
|
|
|
|
#33597 - 2002-11-27 05:36 AM
Re: Working on NT/2000, not on 9x
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Andrew,
Welcome to the board!
Do you have KXRPC running on your DC?
Kent
|
|
Top
|
|
|
|
#33599 - 2002-11-27 05:41 AM
Re: Working on NT/2000, not on 9x
|
adevenis
Lurker
Registered: 2002-11-27
Posts: 4
Loc: Armidale, NSW, Australia
|
Yeah, KXRPC is running.
Somthing else that might help... if I run the script on the 9x box from a DOS prompt, it works.
All the DLL's are in C:\Windows\ as per the manual.
Thanks [ 27. November 2002, 05:46: Message edited by: adevenis ]
|
|
Top
|
|
|
|
#33600 - 2002-11-27 06:16 AM
Re: Working on NT/2000, not on 9x
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Andrew,
Does it flash?
Maybe add a pause statement in your NTLOGON.BAT file..
Comment out the @ECHO OFF to watch file execute.
HTH,
Kent
|
|
Top
|
|
|
|
#33603 - 2002-11-27 11:53 PM
Re: Working on NT/2000, not on 9x
|
adevenis
Lurker
Registered: 2002-11-27
Posts: 4
Loc: Armidale, NSW, Australia
|
I've been looking through the logon.bat files on the system, and can't find anything that works...
I tried changing the file to
code:
%0\..\Kix32.exe %0\..\test
And nothing changed from this point of view.
I tried taking out the @ECHO OFF and adding a few more lines to be output. The window doesn't appear to flash at all.
I guess this suggests that the .bat isn't running? Any further hints?
Cheers.
|
|
Top
|
|
|
|
#33604 - 2002-11-28 12:00 AM
Re: Working on NT/2000, not on 9x
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Shown us exactly what use have placed in the user account profile to call the logon.bat.
Do you have the logon.bat, KiXtart files and scripts located on ALL domain controllers in the logon domain?
|
|
Top
|
|
|
|
#33605 - 2002-11-28 12:12 AM
Re: Working on NT/2000, not on 9x
|
adevenis
Lurker
Registered: 2002-11-27
Posts: 4
Loc: Armidale, NSW, Australia
|
OK.
In the 'Profile' section of 'User Properties' in 'User Administrator' on the PDC (we have only one PDC) I have entered: 'Script1.bat' (the .bat file with the KiXtart lines in it)
The KiXtart files are all placed in the netlogon share of the PDC.
Interestingly from the command line on the W98 box I can type: //eugene/netlogon/Script1.bat and it executes the KiXtart script OK.
|
|
Top
|
|
|
|
#33607 - 2002-11-28 08:09 AM
Re: Working on NT/2000, not on 9x
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
|
|
Top
|
|
|
|
#33608 - 2002-12-10 12:23 AM
Re: Working on NT/2000, not on 9x
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Another idea to see what is happening: use our tool kixstrip which makes it possible to see what is happening during logging on. The output will be written to file %tmp%\kixdebug. No file means "kixtart wasn't started".
After the call kixstrip input.kix output.kix /debug we get following 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+"/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"? ; ?"- 2-"+@time+"-"+$_debug_name+"- @error @serror"? CLS ?"- 3-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 4-"+@time+"-"+$_debug_name+"- @error @serror"? SMALL ?"- 5-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR w+/n ?"- 6-"+@time+"-"+$_debug_name+"- @error @serror"? ? "UNE Students' Association" ?"- 7-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 8-"+@time+"-"+$_debug_name+"- @error @serror"? COLOR w+/n ?"- 9-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 10-"+@time+"-"+$_debug_name+"- @error @serror"? IF ((@time > "00:00:00") AND (@time < "12:00:00")) ?"- 11-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Good Morning," ?"- 12-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE ?"- 13-"+@time+"-"+$_debug_name+"- @error @serror"? IF ((@time >= "12:00:00") AND (@time < "18:00:00")) ?"- 14-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Good Afternoon," ?"- 15-"+@time+"-"+$_debug_name+"- @error @serror"? ELSE ?"- 16-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Good Evening," ?"- 17-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 18-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 19-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 20-"+@time+"-"+$_debug_name+"- @error @serror"? ? @fullname ?"- 21-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Please Wait For Logon script Execution" ?"- 22-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 23-"+@time+"-"+$_debug_name+"- @error @serror"? ; Map Drives to Server "Eugene" ?"- 24-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 25-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: /delete /persistent ?"- 26-"+@time+"-"+$_debug_name+"- @error @serror"? USE h: "\\Eugene\@userid" ?"- 27-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Home Drive" ?"- 28-"+@time+"-"+$_debug_name+"- @error @serror"? ; ?"- 29-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: /delete /persistent ?"- 30-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Domain Users") ?"- 31-"+@time+"-"+$_debug_name+"- @error @serror"? USE i: "\\Eugene\Global" ?"- 32-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Global Drive" ?"- 33-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 34-"+@time+"-"+$_debug_name+"- @error @serror"? USE j: /delete /persistent ?"- 35-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("TUNE! FM Announcers") ?"- 36-"+@time+"-"+$_debug_name+"- @error @serror"? USE j: "\\Eugene\Announcer" ?"- 37-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Announcer" ?"- 38-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 39-"+@time+"-"+$_debug_name+"- @error @serror"? USE k: /delete /persistent ?"- 40-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("TUNE! FM") ?"- 41-"+@time+"-"+$_debug_name+"- @error @serror"? USE k: "\\Eugene\TUNE! FM" ?"- 42-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: TUNE! FM" ?"- 43-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 44-"+@time+"-"+$_debug_name+"- @error @serror"? USE l: /delete /persistent ?"- 45-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Neucleus") ?"- 46-"+@time+"-"+$_debug_name+"- @error @serror"? USE l: "\\Eugene\Neucleus" ?"- 47-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Neucleus" ?"- 48-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 49-"+@time+"-"+$_debug_name+"- @error @serror"? USE m: /delete /persistent ?"- 50-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Dental Clinic") ?"- 51-"+@time+"-"+$_debug_name+"- @error @serror"? USE m: "\\Eugene\Dental Clinic" ?"- 52-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Dental Clinic" ?"- 53-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 54-"+@time+"-"+$_debug_name+"- @error @serror"? USE n: /delete /persistent ?"- 55-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Finance and Admin") ?"- 56-"+@time+"-"+$_debug_name+"- @error @serror"? USE n: "\\Eugene\Finance and Admin" ?"- 57-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Finance and Admin" ?"- 58-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 59-"+@time+"-"+$_debug_name+"- @error @serror"? USE o: /delete /persistent ?"- 60-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Student Support") ?"- 61-"+@time+"-"+$_debug_name+"- @error @serror"? USE o: "\\Eugene\Student Support" ?"- 62-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Student Support" ?"- 63-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 64-"+@time+"-"+$_debug_name+"- @error @serror"? USE p: /delete /persistent ?"- 65-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Bookshop") ?"- 66-"+@time+"-"+$_debug_name+"- @error @serror"? USE p: "\\Eugene\Bookshop" ?"- 67-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Bookshop" ?"- 68-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 69-"+@time+"-"+$_debug_name+"- @error @serror"? USE q: /delete /persistent ?"- 70-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Media") ?"- 71-"+@time+"-"+$_debug_name+"- @error @serror"? USE q: "\\Eugene\Media" ?"- 72-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Media" ?"- 73-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 74-"+@time+"-"+$_debug_name+"- @error @serror"? USE r: /delete /persistent ?"- 75-"+@time+"-"+$_debug_name+"- @error @serror"? IF InGroup("Lifesaver") ?"- 76-"+@time+"-"+$_debug_name+"- @error @serror"? USE r: "\\Eugene\Lifesaver" ?"- 77-"+@time+"-"+$_debug_name+"- @error @serror"? ? "Mapping Drive: Lifesaver" ?"- 78-"+@time+"-"+$_debug_name+"- @error @serror"? ENDIF ?"- 79-"+@time+"-"+$_debug_name+"- @error @serror"? ?"- 80-"+@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 09-dec-2002 12:24:57 (kix 4.10 vs 3.20e) ; ;Informative KIXSTRIP: no errors found (input=80 output=80 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 [12:2:12] ; - select:case:endselect [0:0:0] ; - while:loop [0:0] ;Informative KIXSTRIP: 12 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 EXIT ;Informative KIXSTRIP: 22 USE ; ;($end)
Please return the contents of %tmp%\kixdebug.txt to the board, when you have still a problem. greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic.
|
|
Top
|
|
|
|
#33609 - 2003-03-14 02:52 AM
Re: Working on NT/2000, not on 9x
|
rdavison
Lurker
Registered: 2003-03-13
Posts: 3
Loc: California
|
This is what worked for me in the bat file.
@echo off
if "%os% == "Windows_NT" goto NT goto win9x
:Win9x %0\..\Kix32 %0\..\scriptname goto end
:NT kix32 scriptname goto end :end [ 14. March 2003, 15:51: Message edited by: rdavison ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 756 anonymous users online.
|
|
|