hello,

I have a problem with my login script everything is working exept selecting group for groupshares. can anyone help me?
here is the logon.bat
Code:
 @ECHO OFF
:BATSTART
SET KIXDIR=%WINDIR%
SET KIXSCRIPT=\\homesrvr\NETLOGON\LOGON.KIX
SET KIXVER=KIXFORMS_001.TAG

REM ---------------------------------------------------------------------
IF NOT EXIST %KIXDIR%\NUL MKDIR %KIXDIR%

IF EXIST %KIXDIR%\%KIXVER% GOTO KIXCOPIED
DEL %KIXDIR%\*.TAG >NUL
COPY %0\WKIX32.EXE %KIXDIR% /Y >NUL
COPY %0\KIX32.EXE %KIXDIR% /Y >NUL
COPY %0\KX16.DLL %KIXDIR% /Y >NUL
COPY %0\KX32.DLL %KIXDIR% /Y >NUL
COPY %0\KX95.DLL %KIXDIR% /Y >NUL
COPY %0\KIXFORMS.DLL %KIXDIR% /Y >NUL
REGSVR32 /S %KIXDIR%\kixforms.dll
ECHO KIXTART INSTALLED >%KIXDIR%\%KIXVER%

:KIXCOPIED
WKIX32.exe %KIxscript% $group=ICT Admin <----- this is the group, but then you must make for every group a logon.bat (is there another way?)
:EXIT


Connectgroupdrives
Code:
 
Function ConnectGroupDrives()
;******************************
; GroupShares
;******************************
If Exist($FileLocation + "\shares.ini")
If $group<>""
For $x = 1 to 10
$DriveDefinition = ReadProfileString($FileLocation + "\shares.ini", $group, "drive" + $x)
If @ERROR = 0
If $DriveDefinition<>""
ConnectShare($DriveDefinition)
EndIf
Else
Return
EndIf
Next
EndIf
EndIf
EndFunction


here is the shares.ini
Code:

[ICT Admin]
Drive1="S:, \\homesrvr02\IT$, ICT"

[SG Sales]
Drive1="S:, \\homesrvr\Sales$, Sales"




greets,

tim