?
Solved

How to get citrix values in c#

Posted on 2010-09-15
7
Medium Priority
?
1,095 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 total points
ID: 33691057
I believe you can use \\tsclient\C$\App\

0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Citrix XenDesktop 7.6 Citrix Policies Graphics
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.

765 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