Solved

How to get citrix values in c#

Posted on 2010-09-15
7
995 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
ID: 33685949
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
ID: 33686825
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
ID: 33691057
I believe you can use \\tsclient\C$\App\

0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 2

Author Comment

by:jhacharya
ID: 33694959
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
ID: 33695026
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
ID: 33706570
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
ID: 33731593
it didnt get me all the vairables that are there on citrix but i did get to the local c drive
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenDesktop 7.6 Citrix Policies Disable Peripherals
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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.

914 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

16 Experts available now in Live!

Get 1:1 Help Now