Hi guys,

OK, I've not been able to spend as much time on scripting as I would have liked, but here is the latest attempt. I've followed your advice as best I can (and hope I've done it correctly....)

Anyway, here is the initial login.bat file that the users activates when logging on:

@Echo Off

IF "%OS%" == "Windows_NT" GOTO WinNT

c:\windows\command\XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
c:\windows\command\XCOPY %0\..\KX16.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL
c:\windows\command\XCOPY %0\..\KX32.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V >NUL
c:\windows\command\XCOPY %0\..\KX95.DLL %WINDIR%\SYSTEM\ /D /H /I /R /V > NUL

%WINDIR%\SYSTEM\KIX32.EXE %0\..\kixlogon.kix

GOTO End

:WinNT

XCOPY %0\..\KIX32.EXE %WINDIR%\SYSTEM32\ /D /H /I /R /V >NUL

%WINDIR%\SYSTEM32\KIX32.EXE %0\..\kixlogon.kix

GOTO End

End

Now, this copies the KIX32.EXE folder to the client PC OK on Windows 2000, however I haven't tested it on Win98 yet (I actually got this script from the starter manual - cheers).

OK - this is the kixtart script that is called:

;------------------------------
;Test script as of 7th Nov 2002
;------------------------------

Debug ON

Break ON

;------------------
;Set server details
;------------------

$lserver1 = "SERVER1"

$lserver2 = "SERVER2"

SetConsole ("show")
;EndIf

;-------------------------------------------------------
;Test beep - if you hear this the script has run so far!
;-------------------------------------------------------

If Exist "J:" /delete

EndIf

If Exist "L:" /delete

EndIf

If Exist "M:" /delete

EndIf

If InGroup ("Admin")

Use J: "\\IHQFS01\Admin"
EndIf

If InGroup ("Business")

Use J: "\\FILESERV\Business"
EndIf

If InGroup ("Zone1")

Use J: "\\FILESERV\Zone1"
EndIf

If InGroup ("Zone2")

Use J: "\\FILESERV\Zone2"
EndIf

If InGroup ("Zone3")

Use J: "\\FILESERV\Zone3"
EndIf

If InGroup ("Zone4")

Use J: "\\FILESERV\Zone4"
EndIf

If InGroup ("Zone5")

Use J: "\\FILESERV\Zone5"
EndIf

If InGroup ("Zone6")

Use J: "\\FILESERV\Zone6"
AddPrinterConnection ("\\FILESERV\Color2")
; SetDefaultPrinter ("\\IFILESERV\Color1")
EndIf

;--------------------------------------------------------------------
;This maps individuals to the root of the Zone directory if required
;--------------------------------------------------------------------

If InGroup ("All Zone")

Use L: "\\FILESERV\All Zone"
EndIf

;-----------------------------------------------------------
;This maps users to the root of the Work drive if required
;-----------------------------------------------------------

If InGroup ("Work Root")

Use M: "\\FILESERV\Work"
EndIf

So, does that look better? - It does map users to their correct drives. However, I have another question: Here, we have an agreement to always use the J: drive for users work/departmental directory. But, if I add a user to two or more groups (bearing in mind they are always mapped to J:), is it possible for the script to automatically map to the next drive letter if they become members of additional groups? (I hope that makes sense - it didn't when I was typing it...)

So, if a user is a member of Zone1 for example and had a mapping of: J: \\FILESERV\Zone1, when they get put into Zone3, could it automatically move to L: ? (we use K: as their home drives).

I hope that makes sense - but being Friday my brain is slowing down!

One last thing - the script is only set for Windows 2000 so far, as I said I haven't added the Windows 98 part yet.

Thanks

Cheers guys,

Pilot