It's an environment var - which is easy to define and check. You could use a reg key if you wish - same concept, different commands.
If you use the environment var, you log onto the Citrix server as an admin, right-click My Computer, choose Properties. On the Advanced Tab, click the Environment Variables button. In the "System Variables" section, click New, enter "IsCitrix" in the Variable Name field, and "1", "yes", "true", or even the server name in the Variable Value field - anything so long as it isn't blank.
Open a command prompt, type "SET" and verify that the variable IsCitrix is present. You must open the command prompt after the change to see it.
If the variable is blank, or not defined, your script runs, if it is defined AND NOT blank, it exits.
Glenn
_________________________
Actually I
am a Rocket Scientist!