Originally Posted By: Mephy
That's what I want Les. I want it in my CMD so KiX doesn't load at all. So, on your code, I would put it EXACTLY how you put it, but where CitrixSvrDomain is, I would put the Citrix server name?


Nope. The batch script Les posted checks to see if the environment variable CitrixSvrDomain holds something and start a specific script if it is or if it is not. So if CitrixSvrDomain is empty you would not be on a citrix session and the regular logon script should be started.

Small example:
 Code:
@echo off
REM ****** START CITRIX GENERAL SCRIPT ********
If DEFINED CitrixSvrDomain GOTO Citrix
GOTO NoCitrix

:Citrix
echo User is on Citrix. Do NOT START kix script
pause
Goto End

:NoCitrix
echo User is not on Citrix. Start kix script
pause
wkix32.exe somescript.kix


:End
Exit



Edited by Mart (2008-01-22 09:39 PM)
Edit Reason: added example
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.