Hi
Okey, I have got the NT clients to run the .bat now (finally) hehe.
This is what the batfile that starts kix looks like:--------------------------------------------
C:
@echo off
pause
IF "%OS%" == "Windows_NT" GOTO WINNT
%windir%\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%windir%\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
%0\..\kix32.exe netconn1.txt
GOTO END
:WINNT
SET|more
Echo NT
pause
XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL
XCOPY %0\..\netconn1.txt %WINDIR%\SYSTEM32\ /D /H /I /R /V > NUL
ECHO Loading Logon Script, Please Wait...
CALL c:\winnt\SYSTEM32\KIX32.EXE c:\winnt\SYSTEM32\netconn1.txt
pause
exit
:END
@Echo end
@pause
exit
------------------------------------------
and here are the .kix script:
-------------------------------------------
cls
Color g+/n
BOX (7,20,17,60,FULL)
Color w+/n
AT ( 9,25) "datum : " ; display some text strings
AT (10,25) "tid : "
AT (11,25) "Anv.id : "
AT (12,25) "Full namn : "
AT (13,25) "Domain : "
AT (14,25) "Logon Server : "
Color y+/n
AT ( 9,40) @date ; ...and some macro's
AT (10,40) @time
AT (11,40) @userid
AT (12,40) @fullname
AT (13,40) @domain
AT (14,40) @lserver
AT (15,40) @primarygroup
Color w/n
AT (16,25) "Välkommen till"
AT (16,40) @domain
AT (22,00)
SETTIME "JW"
; rem NET TIME /Domain:JW /SET /YES
USE H: @HOMESHR ; connect to user's home share
if ingroup("Sth1_sj_010_sekr") = 1 ? "Sth1_sj_010_sekr"endif
IF INGROUP("Sth1_sj_010_sekr")
messagebox ("check","stop",3)
shell "call c:\winnt\system32\cmd.exe /C /E:1024 C:\winnt\system32\avd10se.bat"
ENDIF
exit
----------------------------------
I tried the if ingroup("Sth1_sj_010_sekr") = 1 ? "Sth1_sj_010_sekr"endif
and it echoed back "Sth..." and a 6 the number six that is!
fishy......i dont have a clue what it means...but then again im a newbie at Kix and scripting.
Somethin is wrong with the shell "call c:\winnt\system32\cmd.exe /C /E:1024 C:\winnt\system32\avd10se.bat"
but what....?
Thanx for your replays everyone.