Solved

How to get citrix values in c#

Posted on 2010-09-15
7
985 Views
Last Modified: 2012-05-10
I have a C# appliction that works fine on windows directly, but i have an issue when i run the application from citrix,

I need to write a file to the users c:\APP directory, on windows this is fine. But on citrx I need to find out the session , the user name which i think is the computer name and then write to the directory

i think it would be somthing like "\\\\client\\c$\\APP" and i would need to figure out what to replace the client part with, i am thinking the actual computer name.

0
Comment
Question by:jhacharya
  • 4
  • 3
7 Comments
 
LVL 6

Expert Comment

by:Jacob78
Comment Utility
So you want to write to the local client's C:\App folder?

If this is the case, I would recomend against it. The whole point of a Citrix app is to virtualize the app so it can run independant of the client. You also have to remember that end users control whether or not the Citrix sesssion has read and/or write access to the local client.
0
 
LVL 2

Author Comment

by:jhacharya
Comment Utility
you are right that I want to write back to the client, the deliverable i have been given is to right back to the client a xml file on their local machine, the application works fine from a thick client perspective but i have an issue of trying to locate the users machine to give him the file.

Any help would be greatly appreacieted ...
0
 
LVL 6

Accepted Solution

by:
Jacob78 earned 500 total points
Comment Utility
I believe you can use \\tsclient\C$\App\

0
NetScaler Deployment Guides and Resources

Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

 
LVL 2

Author Comment

by:jhacharya
Comment Utility
is there a command i cna use in C# to get the citrix information of the client that is calling the application,
like its ip, username , the computername ...

0
 
LVL 6

Expert Comment

by:Jacob78
Comment Utility
You won't need to...\\tsclient\ is the path to the local client. See attached screen shot.
Capture.JPG
0
 
LVL 2

Author Comment

by:jhacharya
Comment Utility
yep i can hard code that value, but i dont like jard coding any of these sorts of values, wjhat for example if the local machine was on a non windows platform but i need to write a file to it, getting a holf o the client envirment variables would help me know who and from where are the users trying to acces the application. Some of this stuff is just to enable me to store the information in a log file if a inned to do some debugging of the application while its ina  aporduction enviroment ....
0
 
LVL 2

Author Closing Comment

by:jhacharya
Comment Utility
it didnt get me all the vairables that are there on citrix but i did get to the local c drive
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Citrix XenDesktop, gold image, VMware, vSphere.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now