I'm confused.
What's this fascination everyone seems to be having with wintset at the moment?
Why use an external exe do define a variable that is not used outside the script?
if your still within kix use its own variables.

Back to the problem at hand...


  • logon.bat starts up script1.scr
  • script1.scr defines a few variables (why? I don't know.. see above) and then "calls" another script groups.scr
  • groups.scr executes, but finish's with an EXIT, not a RETURN

My thoughts are that when groups.scr finishes, kix sits there watiting to return back to script1.scr, but just doesn't get there... try adding a return to the end of groups.scr instead of exit
See http://kixtart.to/script/manual/KiXtartCommandReference.htm

Even better,


  • trash all the winset stuff (Your scripts don't reference their variables at all) unless you use them elsewhere.
  • can the idea of "calling" groups.scr and just include it within script1.scr. Your certainly not running into memory problems or pushing the boundaries of kix but doing that.

So...
Logon.bat

quote:

@echo off
%0\..\Kix32.exe %0\..\script1.scr
exit

script1.scr

quote:

use u: /delete
use g: /delete
use t: /delete

use u: "\\gbcoty194c010\"+@userid

If INGROUP("marketing")
use g:"\\gbcoty194c010\marketing"
endif

If INGROUP("Domain Admins")
use t: "\\gbcoty194c010\users"
Endif

small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
sleep 3
BOX (8,21,18,61,Å) ; 'shadow' of the box
Color g+/n
BOX (7,20,17,60,FULL)

Color w+/n
AT ( 9,25) "Userid : " ; display some text strings
AT (10,25) "Full name : "
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Domain : "
AT (14,25) "Logon Server : "

Color y+/n
AT ( 9,40) @userid ; ...and some macro's
AT (10,40) @fullname
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver

Color w/n
AT (16,25) "Press anykey to continue."
if exist( @ldrive+"\jbond.spk")
play file @ldrive+"\jbond.spk"
else
get $x
endif
exit


Removing the winset references should cut down on exectuion tme (a little) as well without all the shelling to and fro...

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd