Page 1 of 1 1
Topic Options
#48004 - 1999-08-05 03:51 PM logon script crashes 1/2 way through
Anonymous
Unregistered


Now have 2 bat files, 1 to start Kixtart at logon--script1.bat and 1 to run logon script--script1.kix. Script1.kix crashes at Section3 and does not create userid,fullname, privilege,workstation,domain and logon server info. Also does not map drives. Bat files below, any help greatly appreciated.

;script1.kix

COLOR b+/n ;SECTION1
BOX (0,0,24,79,GRID)
color b/n
BOX (8,21,18,61,A)
Color g+/n
BOX (7,20,17,60,FULL)

COLOR w+/n ;SECTION2
AT (9,25) "UserID :"
AT (10,25) "Full Name :"
AT (11,25) "Privilege :"
AT (12,25) "Workstation :"
AT (13,25) "Domain :"
AT (14,40) "Login Server :"

COLOR y=/n ;SECTION3
AT (9,40) @userid
AT (10,40) @fullname
AT (11,40) @priv
AT (12,40) @wksta
AT (13,25) @domain
AT (14,40) @lserver
COLOR w/n

SET "userid=@userid"
SET "fullname=@fullname"
SET "priv=@priv"

$userid=@userid + "$$"
IF INGROUP ("GDRISCOLL")
USE T: "\\SQL\DRISCOLL"
ENDIF
USE Z: "CORP\$userdir"
SETTIME "\\MAIN"

SLEEP 10
EXIT

; script1.bat

@ECHO OFF
%0\..\kix32.exe %0\..\kixtart.kix script1
EXIT

Top
#48005 - 1999-08-06 03:47 PM Re: logon script crashes 1/2 way through
Anonymous
Unregistered


Try changing: COLOR y=/n ;SECTION3
into COLOR y+/n ;SECTION3

I think you made a typo in the COLOR command.


------------------
Lon Geefshuysen,
www.xs4all.nl/~longeef/NT/KiXtart
lon_geefshuysen@essentium.com



Top
#48006 - 1999-08-09 03:39 PM Re: logon script crashes 1/2 way through
Anonymous
Unregistered


Thanks! Fixed typo and removed three SET lines, $userid=@userid + "$$", and USE Z: "CORP\$userid. Script running fine, mapping users to drives based on group membership BUT still not mapping 95 users directly to their home directories at "\\CORP\users" , any suggestions greatfully accepted!
Top
Page 1 of 1 1


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

Who's Online
0 registered and 2197 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.076 seconds in which 0.052 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