Page 1 of 1 1
Topic Options
#100870 - 2003-05-09 03:06 PM Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
Kix32.exe hangs after logon for some of my users after logon, this occurs in my terminal services environment. It appears to have finished ok, but the process kix32.exe still remains. Any ideas?
Top
#100871 - 2003-05-09 03:20 PM Re: Kix32.exe hanging
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
how you check that it has finished?

do some sort of write to file in the end of script to verify that it has finished really.
_________________________
!

download KiXnet

Top
#100872 - 2003-05-09 03:25 PM Re: Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
I have done that, including pausing the script at the end of exeecution, and it do finish, but the process remains!(Sometimes, not always!) I'm in test mode in a new configuration so I'm keen to work it out. I'm on version 4.2.

[ 09. May 2003, 15:27: Message edited by: Luteputt ]

Top
#100873 - 2003-05-09 03:28 PM Re: Kix32.exe hanging
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you mean 4.02 or 4.20?

do you call the kix exe via batch file or directly?
_________________________
!

download KiXnet

Top
#100874 - 2003-05-09 03:34 PM Re: Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
I'm on 4.2.

And I do call it via batch (login.bat). I've tried to narrow it down to specific users, group membership, security etc. but no luck so far, whether kix32.exe still remains as a process after logon seems random.

Top
#100875 - 2003-05-09 03:37 PM Re: Kix32.exe hanging
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
like asked before...
there is no such version as 4.2.

did you try the pause after the call to the kix?
so does it return to the bat after it has executed?

there might be this type of problems with wkix32.exe when used with bat, but kix32.exe is old style and thus it should work...

{edit}
also check eventlog for possible error-codes

[ 09. May 2003, 15:38: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#100876 - 2003-05-09 03:59 PM Re: Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
Dont meen to argue about the version, but this is what it says:
kix32 /?
KiXtart 2001 4.20 (Copyright Ruud van Velsen 2002)

Yes, I paused the login.bat, and the kix did finish. I have no idea what is going on, thanks for the tips though.

Top
#100877 - 2003-05-09 04:03 PM Re: Kix32.exe hanging
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh [Wink]
I'm pretty picky [Razz]
but it indeed is 4.20

k, there is one more think to ask...
do you have exit in your code?
or even quit?

and do you have executables started with run in your script?

once you have checked these, I might need to even ask you post your code [Wink]
_________________________
!

download KiXnet

Top
#100878 - 2003-05-12 08:11 AM Re: Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
Well i do have 'exit' now, didnt do any good. The only executable i start is a printer 'default' program.

[ 12. May 2003, 08:22: Message edited by: Luteputt ]

Top
#100879 - 2003-05-12 08:15 AM Re: Kix32.exe hanging
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Luteputt,

please post the complete batch and script...
We might be able to help you more after viewing the code...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#100880 - 2003-05-12 08:44 AM Re: Kix32.exe hanging
Luteputt Offline
Fresh Scripter

Registered: 2003-05-09
Posts: 6
OK, but dont kill me for bad coding :-)

I have several scripts depending on the user or environment, but this is the one I am having trouble with, it primarily executes for 'teminal services' users:

$WTSSRV1 = "BSWTS1"
$WTSSRV2 = "BSWTS2"
$WTSSRV3 = "BSWTS3"
$WTSSRV4 = "BSWTS4"
$PRINTSERVER = "ntsvr2"
$VAAGSPC = "BYGGMO-XRF7LXIS"
$FILSERVER = "ntsvr2"
$PROGRAMSHARE = "PROGRAMS"
$FELLESDATA = "FELLES"
$HOMEDRIVE = "U"
;$FILSERVER2 = "BSNTVAAGSBYGD"
;$FELLESDATA2 = "FELLES"
;----------------------------- Bygg Sør ------------------------------------
$Printer2 = "PI-Vige-1etg"
$Printer3 = "PJ-Vige-1etg-felles"
$Printer4 = "PL-Vige-1etg"
$Printer5 = "PW-Vige-1etg"
$Printer6 = "PY-Vige-1etg-OCE"
$Printer7 = "PU-Vige-2etg"
$Printer8 = "PB-Vige-2etg"
$Printer9 = "PC-Vige-2etg"
$Printer10 = "PG-Vige-2etg"
$Printer11 = "PM-Vige-2etg"
$Printer12 = "PT-Vige-2etg"
$Printer13 = "PQ-Vige-1etg-Kursrom"
$Printer14 = "PO-Vige-1etg"
$Printer15 = "P-Bico-Vige-Lager"
$Printer16 = "PS-Vige-1etg"
$Printer17 = "P-LPettersen"
;------------------------------ Ole Moe ------------------------------------
$Printer20 = "A0-Olemoe-1etg"
$Printer21 = "A7-OleMoe-1etg"
$Printer22 = "A8-OleMoe-1etg"
$Printer23 = "A9-OleMoe-1etg"
$Printer38 = "AA-OleMoe-1etg"
$Printer24 = "AB-OleMoe-1etg"
$Printer25 = "B1-OleMoe-2etg"
$Printer26 = "B4-OleMoe-2etg"
$Printer27 = "B5-OleMoe-2etg"
$Printer28 = "C2-Olemoe-3etg"
$Printer29 = "C6-OleMoe-3etg"
$Printer30 = "C8-OleMoe-3etg"
$Printer31 = "C9-OleMoe-3etg"
$Printer32 = "CC-olemoe-3etg"
$Printer33 = "CD-OleMoe-3etg"
$Printer34 = "CJ-OleMoe-3etg"
$Printer35 = "CR-OleMoe-3etg"
$Printer36 = "CU-OleMoe-3etg"
$Printer37 = "CY-OleMoe-3etg"
$Printer38 = "CP-OleMoe-3etg"
$Printer39 = "CW-OleMoe-3etg"
;------------------------ Resten av avdelingene ----------------------------
$Printer40 = "GB-Grimstad-2etg"
$Printer41 = "GD-Grimstad-1etg"
$Printer42 = "GE-Grimstad-1etg"
$Printer43 = "GF-Grimstad-1etg"
$Printer44 = "GA-Grimstad-2etg"
$Printer45 = "LO-Lillesand"
$Printer46 = "L2-Lillesand"
$Printer47 = "K6-Kjøita"
$Printer48 = "K8-Kjøita"
$Printer49 = "K9-Kjøita"
$Printer50 = "T1-Tvedestrand"
$Printer51 = "T2-Tvedestrand"
$Printer52 = "T4-Tvedestrand"
$Printer53 = "T5-Tvedestrand"
$Printer54 = "V4-vågsbygd"
$Printer55 = "V5-vågsbygd"
$Printer59 = "VF-Vågsbygd-Lager"
$Printer56 = "M3-Mandal"
$Printer57 = "M4-Mandal"
$Printer58 = "M8-Mandal"
$Printer59 = "M7-Mandal"
$Printer60 = "T8-Tvedestrand"
;------------------------------ Kun 1 printer ------------------------------
$Printer61 = "W1-LogN"
$Printer62 = "U3-Vennesla"
$Printer63 = "O3-Grovane"
$Printer64 = "S4-Søgne"
$Printer65 = "I3-Lindesnes-2etg"
$Printer66 = "J4-Kvinesdal"
$Printer68 = "H4-Øye"
$Printer70 = "R7-Randesund"
$Printer71 = "S7-Sogndalen"
$Printer72 = "Z2-Hovden"
$Printer73 = "F3-Flekkefjord"
$Printer74 = "S6-Søgne"
$Printer75 = "JonJacobsenSkriver"

$NotesMessage = "Notes er ikke installert for denne brukeren. Skal Notes installeres ?"

; shell "\\ntsvr2\netlogon\con2prt /f"

;---------------------------------------------------------------------------
;Sjekker gruppetilhørighet og kobler til skrivere
;---------------------------------------------------------------------------

;----------------------------- Bygg Sør ------------------------------------

IF INGROUP ("Vige Metaframe") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer2)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer3)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer4)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer5)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer6)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer7)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer15)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer13)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer16)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer17)
ENDIF

IF INGROUP ("Vige Metaframe 2etg") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer8)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer9)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer10)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer11)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer12)
ENDIF

IF INGROUP("Kursbrukere") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer13)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer14)
ENDIF

IF INGROUP("jonjacobsen") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer75)
ENDIF

;------------------------------ Ole Moe ------------------------------------

IF INGROUP ("Ole Moe 1etg") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer20)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer21)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer22)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer23)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer24)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer38)
ENDIF

IF INGROUP ("Ole Moe 2etg") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer25)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer26)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer27)
ENDIF

IF INGROUP ("Ole Moe 3etg") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer28)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer29)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer30)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer31)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer32)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer33)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer34)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer35)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer36)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer37)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer38)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer39)
ENDIF

;----------------- Resten av avdelingene -----------------------------------

IF INGROUP("BMGrimstad") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer40)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer41)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer42)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer43)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer44)
ENDIF

IF INGROUP("BMLillesand") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer45)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer46)
ENDIF

IF INGROUP("BMKjoita") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer47)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer48)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer49)
ENDIF

IF INGROUP("BM Tvedestrand") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer50)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer51)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer52)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer53)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer60)
ENDIF

IF INGROUP ("Vaagsbygd") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer54)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer55)
; ADDPRINTERCONNECTION ("\\" + $VAAGSPC + "\" + $Printer59)
ENDIF

IF INGROUP ("BM Mandal") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer56)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer57)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer58)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer59)
ENDIF

IF INGROUP ("Flekkefjord") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer73)
ENDIF

IF INGROUP ("LogN") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer61)
ENDIF

IF INGROUP("BMVennesla") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer62)
ENDIF

IF INGROUP("Grovane Sagbruk") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer63)
ENDIF

IF INGROUP("BM Søgne") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer64)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer74)
ENDIF

IF INGROUP("BMLindesnes") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer65)
ENDIF

IF INGROUP("BMKvinesdal") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer66)
ENDIF

IF INGROUP ("Øye Trelast") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer68)
ENDIF

IF INGROUP("BM Randesund") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer70)
ENDIF

IF INGROUP ("Songdalen") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer71)
ENDIF

IF INGROUP ("Monter Hovden") = 1
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer72)
ENDIF

IF INGROUP ("gudmund") = 1
shell "\\ntsvr2\netlogon\con2prt /f"
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer2)
ADDPRINTERCONNECTION ("\\" + $Printserver + "\" + $Printer16)
ENDIF

;-----------------------------------------------------------------------------------------------
;--------------------------------- Setter opp default printer ----------------------------------
;-----------------------------------------------------------------------------------------------

IF INGROUP ("c04a0") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\A0-Olemoe-1etg"
ENDIF

IF INGROUP ("c04a7") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\A7-OleMoe-1etg"
ENDIF

IF INGROUP ("c04a8") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\A8-OleMoe-1etg"
ENDIF

IF INGROUP ("c04a9") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\A9-OleMoe-1etg"
ENDIF

IF INGROUP ("c04aa") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\AA-OleMoe-1etg"
ENDIF

IF INGROUP ("c04ab") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\AB-OleMoe-1etg"
ENDIF

IF INGROUP ("c04b1") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\B1-OleMoe-2etg"
ENDIF

IF INGROUP ("c04b4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\B4-OleMoe-2etg"
ENDIF

IF INGROUP ("c04b5") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\B5-OleMoe-2etg"
ENDIF

IF INGROUP ("c04c2") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\C2-OleMoe-3etg"
ENDIF

IF INGROUP ("c04c6") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\C6-OleMoe-3etg"
ENDIF

IF INGROUP ("c04c8") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\C8-OleMoe-3etg"
ENDIF

IF INGROUP ("c04c9") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\C9-OleMoe-3etg"
ENDIf

IF INGROUP ("c04cc") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CC-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cd") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CD-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cj") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CJ-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cp") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CP-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cu") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CU-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cw") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\Cw-OleMoe-3etg"
ENDIF

IF INGROUP ("c04cy") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\CY-OleMoe-3etg"
ENDIF

IF INGROUP ("c04f3") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\F3-Flekkefjord"
ENDIF

IF INGROUP ("c04ga") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\GA-Grimstad-2etg"
ENDIF

IF INGROUP ("c04gb") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\GB-Grimstad-2etg"
ENDIF

IF INGROUP ("c04gd") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\GD-Grimstad-1etg"
ENDIF

IF INGROUP ("c04ge") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\GE-Grimstad-1etg"
ENDIF

IF INGROUP ("c04gf") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\GF-Grimstad-1etg"
ENDIF

IF INGROUP ("c04h4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\H4-Øye-1etg"
ENDIF

IF INGROUP ("c04i3") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\I3-Lindesnes-2etg"
ENDIF

IF INGROUP ("c04j4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\J4-Kvinesdal"
ENDIF

IF INGROUP ("c04k6") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\K6-Kjøita"
ENDIF

IF INGROUP ("c04k8") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\K8-Kjøita"
ENDIF

IF INGROUP ("c04k9") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\K9-Kjøita"
ENDIF

IF INGROUP ("c04l2") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\L2-Lillesand"
ENDIF

IF INGROUP ("c04lo") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\LO-Lillesand"
ENDIF

IF INGROUP ("c04m3") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\M3-Mandal"
ENDIF

IF INGROUP ("c04m4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\M4-Mandal"
ENDIF

IF INGROUP ("c04m8") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\M8-Mandal"
ENDIF

IF INGROUP ("c04m7") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\M7-Mandal"
ENDIF

IF INGROUP ("c04o3") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\O3-Grovane"
ENDIF

IF INGROUP ("c04pbico") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\P-Bico-Vige-Lager"
ENDIF

IF INGROUP("c04pb") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PB-Vige-2etg"
ENDIF

IF INGROUP ("c04pc") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PC-Vige-2etg"
ENDIF

IF INGROUP ("c04pd") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PD-Vige-1etg"
ENDIF

IF INGROUP ("c04pg") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PG-Vige-2etg"
ENDIF

IF INGROUP ("c04pi") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PI-Vige-1etg"
ENDIF

IF INGROUP ("c04pj") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PJ-Vige-1etg-felles"
ENDIF

IF INGROUP ("c04pl") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PL-Vige-1etg"
ENDIF

IF INGROUP ("c04plpettersen") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\P-LPettersen"
ENDIF

IF INGROUP ("c04pm") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PM-Vige-2etg"
ENDIF

IF INGROUP ("c04po") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PO-Vige-1etg"
ENDIF

IF INGROUP ("c04pq") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PQ-Vige-1etg-Kursrom"
ENDIF

IF INGROUP ("c04ps") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PS-Vige-1etg"
ENDIF

IF INGROUP ("c04pt") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PT-Vige-2etg"
ENDIF

IF INGROUP ("c04pu") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PU-Vige-2etg"
ENDIF

IF INGROUP ("c04pw") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PW-Vige-1etg"
ENDIF

IF INGROUP ("c04py") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\PY-Vige-1etg-OCE"
ENDIF

IF INGROUP ("c04r7") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\R7-Randesund"
ENDIF

IF INGROUP ("c04s4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\S4-Søgne"
ENDIF

IF INGROUP ("c04s7") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\S7-Sogndalen"
ENDIF

IF INGROUP ("c04t1") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\T1-Tvedestrand"
ENDIF

IF INGROUP ("c04t2") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\T2-Tvedestrand"
ENDIF

IF INGROUP ("c04t4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\T4-Tvedestrand"
ENDIF

IF INGROUP ("c04t5") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\T5-Tvedestrand"
ENDIF

IF INGROUP ("c04t8") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\T5-Tvedestrand"
ENDIF

IF INGROUP ("c04u3") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\U3-Vennesla"
ENDIF

IF INGROUP ("c04v4") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\V4-Vågsbygd"
ENDIF

IF INGROUP ("c04v5") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\V5-Vågsbygd"
ENDIF

IF INGROUP ("c04vf") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\VF-Vågsbygd-Lager"
ENDIF

IF INGROUP ("c04w1") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\W1-LogN"
ENDIF

IF INGROUP ("c04z2") = 1
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\Z2-Hovden"
ENDIF

;------------------------------------ Oppmapping av drives -------------------------------------

IF INGROUP ("Sekretær") = 1
USE g: "\\ntsvr2\docs"
ENDIF

IF INGROUP ("NOBB") = 1
USE N: "\\AS400\QDLS\C04"
ENDIF

IF INGROUP ("idisk") = 1
USE i: "\\AS400\QDLS\C04"
ENDIF

;IF INGROUP ("Vaagsbygd") = 1
; USE U: "\\" + $FILSERVER2 + "\" + @USERID
; USE K: "\\" + $FILSERVER2 + "\" + $FELLESDATA2
;ENDIF

USE U: "\\NTSVR2\" + @USERID
USE K: "\\" + $FILSERVER + "\" + $FELLESDATA

;------------------------------------- Installere notes? --------------------------------------

IF @WKSTA = $wtssrv1 OR @WKSTA = $wtssrv2 OR @WKSTA=$wtssrv3 OR @WKSTA=$wtssrv4

IF EXIST ($HOMEDRIVE + ":\windows\notes.ini") = 0
$Answer = MESSAGEBOX ($NotesMessage, "Installasjon av Lotus Notes", 36)
IF ($Answer = 6) ; Svaret er Ja
IF EXIST ($HOMEDRIVE + ":\notes\.") = 0
MD ($HOMEDRIVE + ":\Notes")
MD ($HOMEDRIVE + ":\NOTES\Data")
MD ($HOMEDRIVE + ":\NOTES\DATA\Doc")
MD ($HOMEDRIVE + ":\NOTES\DATA\W32")
ENDIF

COPY "\\ntsvr2\MFNOTES\NOTES\DATA\*.*" $HOMEDRIVE + ":\notes\data"
COPY "\\ntsvr2\MFNOTES\NOTES\DATA\W32\*.*" $HOMEDRIVE + ":\notes\data\W32"
COPY "\\ntsvr2\MFNOTES\Windows\notes.ini" $HOMEDRIVE + ":\windows"

ENDIF
ENDIF
IF EXIST ($HOMEDRIVE + ":\Maler\.") = 0
MD ($HOMEDRIVE + ":\Maler")
COPY "Q:\Program Files\Microsoft Office\Maler\Normal.dot" "U:\Maler"
ENDIF
IF EXIST ($HOMEDRIVE + ":as400.kmp") = 0
COPY "Q:\Program Files\IBM\Client Access\Emulator\private\as400.kmp" "U:\" /h
ENDIF

SHELL "cmd.exe /x /c del q:\Docume~1\%username%\Locals~1\tempor~1\Content.IE5 /q /s"
ENDIF

;-------------------- Lag mappe på hver enkelt bruker som logger seg å -------------------------

md u:\makro
exit

[ 12. May 2003, 08:46: Message edited by: Luteputt ]

Top
#100881 - 2003-05-12 08:53 AM Re: Kix32.exe hanging
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Seems OK...

you could try to make a debug version with MCA's KiXstrip tool: KIX-TOOL: stripping, reformatting, debugging, performance analyze kix code (kixstrip)

Let us know the outcome...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#100882 - 2003-05-12 10:39 AM Re: Kix32.exe hanging
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Try following code and 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"? ? @kix

?"------- 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

You should get something like
code:
-monday 2003/05/12 10:44:14- kixtart 4.21 Release Candidate 2/4.00e script starting (test.kix)
-
-curdir: c:\temp
-scriptdir: c:\temp
-startdir: c:\windows
-
-userid: administrator/administrator
-user priv: guest
-version: inwin=2/dos=4.90/productsuite=0/producttype=Windows Me/csd=
-
-debug file: c:\temp\kixdebug.txt
-debug name: 20030512_104414.250_855
-
----- start-10:44:14-20030512_104414.250_855 - 0 The operation completed successfully.

- 1-10:44:14-20030512_104414.250_855 - 0 The operation completed successfully.

4.21 Release Candidate 2
------- end-10:44:14-20030512_104414.250_855 - 0 The operation completed successfully.
-
-monday 2003/05/12 10:44:14- kixtart 4.21 Release Candidate 2/4.00e script ending (test.kix)
-

greetings.

btw: it was created with out tool kixstrip, which you can find on our
site. Also a PDF document is available.

[ 12. May 2003, 10:41: Message edited by: MCA ]
_________________________
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

Top
#100883 - 2003-05-12 10:54 AM Re: Kix32.exe hanging
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
does it hang for ever or some time?
wonder what will happen if U-drive does not exist...

anyway, terminal services env, so think you could replace all:
shell "\\ntsvr2\netlogon\con2prt /cd \\ntsvr2\Z2-Hovden"

lines with setdefaultprinter()
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.066 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org