"Six of one, half-dozen of other" they say in the old country. * ;\)

If you define a System environment variable on the Citrix server, users logging in to the Citrix server will have that variable present. Users logging into desktop systems will not. Thus:

Assume you define IsCitrix = TRUE on the citrix server

CMD/BAT file:
 Code:
If [%IsCitrix%]==[] {
REM Run the Kix login script
Kix32 kixtart.kix
Goto Common
}
REM citrix stuff goes here...

:COMMON
REM commands common to all environments go here...

In Kixtart:
 Code:
; Exit immediatly if IsCitrix is not null
If '%IsCitrix%' Quit 0 EndIf


Personally, I'd add the code to Kix simply because it's easier, and can be placed anywhere. Thus, you could run SOME of the kix script if you wanted to on the Citrix server.

Glenn

* Actually, they say something completely different, but I'd probably be censored here. \:D


Edited by Glenn Barnas (2008-01-24 04:27 PM)
Edit Reason: code typo
_________________________
Actually I am a Rocket Scientist! \:D