Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect if app is running on Citrix

Status
Not open for further replies.

albertdc

Programmer
Feb 10, 2004
38
PH
Anyone know of a way for a VFP app to detect if it is running on a Citrix session?

Thanks,

Scott
 
Brian,

Will that function work the same way under a Citrix session? I haven't tried it yet but, doesn't this work only on Terminal Services Client?

Also, I see it requires Win2k/WinXP client. Some of our client PCs are running Win98 and most of our servers are NT4.

Thanks,

Scott
 
Scott,

I can't tell you because it has never been an issue for me. I just figured there must be an API that'd help and found the above link.

I don't have time to play around with it (or else I would), but I would be interested in your solution as it might come in handy one day.

Thanks,
Brian
 
I have a solution of kinds to this, if I'm repeating anyone else, I'm sorry.

Test for an environment variable called 'SessionName', if your app is running in a Citrix Client environment, it will begin with 'ICA' otherwise it will be blank, or have the value 'Console'.

Regards

Griff
Keep [Smile]ing
 
I can't seem to find that environment variable. I tried issuing "echo %SessionName%" from the command line and it just returned the variable name.

But, given your idea, I think we'll just persist an environment variable in every citrix session to serve as identifier.

Thanks,

Scott
 
Brian

Since Citrix is a layer installed on top of Windows and is not an operating system I would guess OS() will return the Windows version.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top