Ju,

Similar to Les' response, we use -
code:
IF "%COMPUTERNAME%" == "SC01" GOTO :CITRIX
IF "%COMPUTERNAME%" == "SC02" GOTO :CITRIX
IF "%COMPUTERNAME%" == "SC03" GOTO :CITRIX
IF "%COMPUTERNAME%" == "SC04" GOTO :CITRIX

Another way, you could look for Citrix-specific Utilities -

IF EXIST %WINDIR%\SYSTEM32\QLICENSE.EXE GOTO :CITRIX

Or QSERVER.EXE

You could look for the %CLIENTNAME% variable if it is not Citrix Session.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's