473,503 Members | 10,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run a Citrix App

Art
Hi,

We have some applications that run on a Citrix server. I would like to run
one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a command
line that will do what I want. My VB.net application is not on that Citrix
server. I'm afraid that if I map a drive to the Citrix box and shell out to
the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood" on my
desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still be
managed by Citrix?

Thanks,

Art
Feb 23 '06 #1
5 11256
Hi Art, if you right click the app in your Citrix Neighborhood you can
choose Create Desktop Shortcut, if you then right click the shortcut on the
desktop you can see the shortcuts' target and the shortcut start in
directory. Next you can use this info to start up the program the same way
as citrix would by using a Process and ProcessStartinfo in vb.net

For example

Dim myProc As New Process
Dim myPsi As New ProcessStartInfo
'this is the info like it is in my desktop shortcut
'Target: "C:\Program Files\Citrix\ICA Client\pn.exe" /APP
"Profelmenu" /PNI "8a0f5291"
'Start in: "C:\Program Files\Citrix\ICA Client"
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First
part of the "target" part from the shortcut
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second
part of the "target" part from the shortcut
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The
"start in" part of the shortcut
myProc.Start(myPsi)

hope this helps,

Greetz PEter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:08**********************************@microsof t.com...
Hi,

We have some applications that run on a Citrix server. I would like to run one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a command
line that will do what I want. My VB.net application is not on that Citrix server. I'm afraid that if I map a drive to the Citrix box and shell out to the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood" on my desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still be
managed by Citrix?

Thanks,

Art

Feb 23 '06 #2
Art
Peter,

Two things...

First -- why didn't I think of a desktop shortcut?
Second, and this may cancel our the first -- I've never seen any of the
stuff in your code. I'll try it out and no doubt learn a whole bunch of
useful stuff.

Thanks very much,

Art

"Peter Proost" wrote:
Hi Art, if you right click the app in your Citrix Neighborhood you can
choose Create Desktop Shortcut, if you then right click the shortcut on the
desktop you can see the shortcuts' target and the shortcut start in
directory. Next you can use this info to start up the program the same way
as citrix would by using a Process and ProcessStartinfo in vb.net

For example

Dim myProc As New Process
Dim myPsi As New ProcessStartInfo
'this is the info like it is in my desktop shortcut
'Target: "C:\Program Files\Citrix\ICA Client\pn.exe" /APP
"Profelmenu" /PNI "8a0f5291"
'Start in: "C:\Program Files\Citrix\ICA Client"
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First
part of the "target" part from the shortcut
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second
part of the "target" part from the shortcut
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The
"start in" part of the shortcut
myProc.Start(myPsi)

hope this helps,

Greetz PEter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:08**********************************@microsof t.com...
Hi,

We have some applications that run on a Citrix server. I would like to

run
one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a command
line that will do what I want. My VB.net application is not on that

Citrix
server. I'm afraid that if I map a drive to the Citrix box and shell out

to
the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood" on

my
desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still be
managed by Citrix?

Thanks,

Art


Feb 24 '06 #3
Hi the code isn't that complex if you go by it step by step

'First we declare a new Process and ProcessStartInfo, you can use
ProcessStartInfo to provide the process more info about 'what and where to
start.
Dim myProc As New Process
Dim myPsi As New ProcessStartInfo

'We provide the processStartInfo the path to the exe to start
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First

'Next we provide the startup arguments for the exe
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second

'Then we pass the workingdirectory
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The

'Finally we say start a process based on the processStartInfo
myProc.Start(myPsi)
Greetz Peter
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:B8**********************************@microsof t.com...
Peter,

Two things...

First -- why didn't I think of a desktop shortcut?
Second, and this may cancel our the first -- I've never seen any of the
stuff in your code. I'll try it out and no doubt learn a whole bunch of
useful stuff.

Thanks very much,

Art

"Peter Proost" wrote:
Hi Art, if you right click the app in your Citrix Neighborhood you can
choose Create Desktop Shortcut, if you then right click the shortcut on the desktop you can see the shortcuts' target and the shortcut start in
directory. Next you can use this info to start up the program the same way as citrix would by using a Process and ProcessStartinfo in vb.net

For example

Dim myProc As New Process
Dim myPsi As New ProcessStartInfo
'this is the info like it is in my desktop shortcut
'Target: "C:\Program Files\Citrix\ICA Client\pn.exe" /APP
"Profelmenu" /PNI "8a0f5291"
'Start in: "C:\Program Files\Citrix\ICA Client"
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First part of the "target" part from the shortcut
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second part of the "target" part from the shortcut
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The "start in" part of the shortcut
myProc.Start(myPsi)

hope this helps,

Greetz PEter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:08**********************************@microsof t.com...
Hi,

We have some applications that run on a Citrix server. I would like to
run
one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a
command line that will do what I want. My VB.net application is not on that

Citrix
server. I'm afraid that if I map a drive to the Citrix box and shell out to
the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood"
on my
desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still

be managed by Citrix?

Thanks,

Art


Feb 24 '06 #4
Art
Peter,

I tried your suggestion and it did successfully launch the Citrix App. I
know have a followup problem. There are 3 parameters I need to pass to the
reporting app -- user ID, password and a report file. I can do this on a
command line by:

appname.exe -user xxxx -password xxxx report.rrr

When I use the shortcut as you described, I can't find a way to do this. I
did find that I needed to change what you had sent me slightly:
myProc.StartInfo=myPsi
myProc.Start

I then noticed all kinds of methods and properties for myProc. I thought
maybe somwthing using the window handler would let me fill in the ID and
password. Although this wouldn't let me get the report name in there.

The ideal solution would be to be able to use something that looks like the
command line that I would use to start the application.

Do you have any suggestions for that?

Even if not, I want to thank you for the help you've already given me.

Art

"Peter Proost" wrote:
Hi Art, if you right click the app in your Citrix Neighborhood you can
choose Create Desktop Shortcut, if you then right click the shortcut on the
desktop you can see the shortcuts' target and the shortcut start in
directory. Next you can use this info to start up the program the same way
as citrix would by using a Process and ProcessStartinfo in vb.net

For example

Dim myProc As New Process
Dim myPsi As New ProcessStartInfo
'this is the info like it is in my desktop shortcut
'Target: "C:\Program Files\Citrix\ICA Client\pn.exe" /APP
"Profelmenu" /PNI "8a0f5291"
'Start in: "C:\Program Files\Citrix\ICA Client"
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First
part of the "target" part from the shortcut
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second
part of the "target" part from the shortcut
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The
"start in" part of the shortcut
myProc.Start(myPsi)

hope this helps,

Greetz PEter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:08**********************************@microsof t.com...
Hi,

We have some applications that run on a Citrix server. I would like to

run
one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a command
line that will do what I want. My VB.net application is not on that

Citrix
server. I'm afraid that if I map a drive to the Citrix box and shell out

to
the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood" on

my
desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still be
managed by Citrix?

Thanks,

Art


Feb 24 '06 #5
Hi,

I won't be at work for a couple of days so I can't realy test anything,
but I think that you can specify command line parameters when you publish an
app on citrix, so I would publish the app with the parameters you need, then
again create a desktop shortcut and check it's properties to see how the
info get's passed to the app. I guess you probably need to add something to
the myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" piece of code

I hope this helps, greetz Peter

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:EE**********************************@microsof t.com...
Peter,

I tried your suggestion and it did successfully launch the Citrix App. I
know have a followup problem. There are 3 parameters I need to pass to the reporting app -- user ID, password and a report file. I can do this on a
command line by:

appname.exe -user xxxx -password xxxx report.rrr

When I use the shortcut as you described, I can't find a way to do this. I did find that I needed to change what you had sent me slightly:
myProc.StartInfo=myPsi
myProc.Start

I then noticed all kinds of methods and properties for myProc. I thought
maybe somwthing using the window handler would let me fill in the ID and
password. Although this wouldn't let me get the report name in there.

The ideal solution would be to be able to use something that looks like the command line that I would use to start the application.

Do you have any suggestions for that?

Even if not, I want to thank you for the help you've already given me.

Art

"Peter Proost" wrote:
Hi Art, if you right click the app in your Citrix Neighborhood you can
choose Create Desktop Shortcut, if you then right click the shortcut on the desktop you can see the shortcuts' target and the shortcut start in
directory. Next you can use this info to start up the program the same way as citrix would by using a Process and ProcessStartinfo in vb.net

For example

Dim myProc As New Process
Dim myPsi As New ProcessStartInfo
'this is the info like it is in my desktop shortcut
'Target: "C:\Program Files\Citrix\ICA Client\pn.exe" /APP
"Profelmenu" /PNI "8a0f5291"
'Start in: "C:\Program Files\Citrix\ICA Client"
myPsi.FileName = "C:\Program Files\Citrix\ICA Client\pn.exe" 'First part of the "target" part from the shortcut
myPsi.Arguments = "/APP ""Profelmenu"" /PNI ""8a0f5291""" 'Second part of the "target" part from the shortcut
myPsi.WorkingDirectory = "C:\Program Files\Citrix\ICA Client" 'The "start in" part of the shortcut
myProc.Start(myPsi)

hope this helps,

Greetz PEter

--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"Art" <Ar*@discussions.microsoft.com> schreef in bericht
news:08**********************************@microsof t.com...
Hi,

We have some applications that run on a Citrix server. I would like to
run
one of them, a reporting app, from within a VB.net application.

If I log into the Citrix server with remote desktop, I can type a
command line that will do what I want. My VB.net application is not on that

Citrix
server. I'm afraid that if I map a drive to the Citrix box and shell out to
the reporting app that I'll take it over -- that is, my use of the
application won't be managed by Citrix.

I normally access the reporting app by running a "Citrix Neighborhood"
on my
desktop. The app is publised there and I can click on it and run it.

Does anyone know of a way to run this in such a way that it will still

be managed by Citrix?

Thanks,

Art


Feb 27 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4726
by: James Ng | last post by:
I have posted this to the Citrix Developers' forum and have not heard anything yet. So I'd like to see if any other Java developers have experience this problem with their Java application in a...
12
9872
by: Corey Burnett | last post by:
I have a client that has a split database (front-end/back-end). They are also using Access security - MDW file. The front end MDE file, the back end MDB file, and the MDW file are all located on...
7
8105
by: Rob | last post by:
I am an Access developer and have done many Access databases in the standard Front-end on the workstations, backend on the server (over a LAN) but have never worked with Access over Citrix, though...
33
3201
by: DFS | last post by:
An application I wrote has been deployed on Citrix, and the Citrix admin tells me all users run the same .mde file. There aren't a lot of concurrent users, but even 2 could be cause for concern. ...
7
2502
by: SK | last post by:
Hi, Would appreciate if anyone could help me on this. Basically my client having few branches across state. And they used Citrix in which to connect to the server side for accessing application...
7
4976
by: Paul | last post by:
I have a VB.NET form with a DataGrid. When I toggle to Excel (for example) and then back to my application the repaint of the DataGrid is really slow. You can see the repainting happening. When...
0
1863
by: roneon | last post by:
This is the problem that the topic starter posted: "we installed Oracle-Client 8.1.7 on a server with Windows 2000 Terminal-Services and Citrix Metaframe Xp. The Forms-Applications we ...
4
3502
by: Peter | last post by:
I have the following code which works fine in IE6 and IE7 and FireFox, but when I run IE6 on Citrix I get "The page cannot be displayed" in the iframe. We don't have IE7 on Citrix so I can't try...
12
2069
by: =?Utf-8?B?QXJ0?= | last post by:
Hi, I'm putting together an application in vb.net. I will ultimately need people to be able to run it from home (Normally we're in one office). I can store it on a file server, but this raises...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.