Page 1 of 1 1
Topic Options
#6956 - 2001-02-18 09:23 PM Testing for Citrix?
Anonymous
Unregistered


Does anyone know how to test for Citrix Winframe/Metframe using kixtart?...or even by using the batch file that calls kixtart?

I know there's a sample script in here that can give you versions of 95, etc., but I didn't see anything about Citrix.

Thanks.

Top
#6957 - 2001-02-18 11:02 PM Re: Testing for Citrix?
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
Citrix clients use the Environment variable %winstationname% to identify themselves. Check check for this. Something like:

if len("%winstationname%")>1 "hello Citrix user!" endif

etc


cj

Top
#6958 - 2001-02-21 03:36 PM Re: Testing for Citrix?
Anonymous
Unregistered


If it's a server you want to check for, I use %systemroot%, Citrix default is <drive>\WTSRV.
Top
#6959 - 2001-02-22 01:42 AM Re: Testing for Citrix?
Anonymous
Unregistered


Hello tbrown,

I use Citrix too and need to do something different if the client is a Citrix user. I tried using the WTSVR option and could not get it to work. But cj's example did work.


IF LEN("%winstationname%")>1
;do something
ENDIF

It seems like using the WTSVR option would be better. Perhaps I was using the wrong syntax. Could you please give an example?

Thank you,
Rebecah

Top
#6960 - 2001-03-05 06:19 PM Re: Testing for Citrix?
Anonymous
Unregistered


All I do is check for the citrix computer name.

if @WKSTA = "cellcomts1" or @WKSTA= "cellcomts2"
goto end
endif

Top
#6961 - 2001-03-06 11:58 AM Re: Testing for Citrix?
Anonymous
Unregistered


It's nice to see a variety of methods acheiving the same result. I use "if %WINDIR%!==R:\WTSRV!" in the calling batch file rather than perform the test with Kixtart. This has the advantage that that Kixtart is not called at all, thereby reducing the overhead and speeding the logon process slightly. As the Citrix server is more likely to have multiple simultaneous logons than any of our other servers this small saving could conceivably make a difference.

Top
#6962 - 2001-03-07 10:24 PM Re: Testing for Citrix?
Anonymous
Unregistered


Yeah, but if you are using the logon script to map drives to other computer for databases, etc. you still need a logon script running for that user.
Top
#6963 - 2001-03-08 01:56 PM Re: Testing for Citrix?
Anonymous
Unregistered


That's the beauty of having multiple choices. You select the one that best suits your needs. I mentioned why I chose my method because so many times I've seen different ways of doing the same thing and wondered why I should choose one method over the others. Sometimes the reason is not immediately obvious.
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org