
(Aviso legal)Įste artigo foi traduzido automaticamente. (Clause de non responsabilité)Įste artículo ha sido traducido automáticamente. (Haftungsausschluss)Ĭe article a été traduit automatiquement. This article has been machine translated.ĭieser Artikel wurde maschinell übersetzt. Questo contenuto è stato tradotto dinamicamente con traduzione automatica. (Aviso legal)Įste texto foi traduzido automaticamente. (Clause de non responsabilité)Įste artículo lo ha traducido una máquina de forma dinámica. (Haftungsausschluss)Ĭet article a été traduit automatiquement de manière dynamique. Either way though, it worked with two of them and not with one of them.This content has been machine translated dynamically.ĭieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. I believe adding the 2nd asterisk lets the parameter get through the command line validation and allows it to be used when the application is opened. The last step is to make sure in your Citrix Delivery Console to make sure that the Location properties of the published application for the CommandLineExecutable has a "%**" after it, including the double quotes. The %1 in the InitialProgram component is where the argument is used from the C# code. Set > Version = 2 > HttpBrowserAddress=ServerName:8080 > ProxyType=Auto > ConnectionBar=0 > ApplicationName= > Address = ApplicationName > InitialProgram=#"ApplicationName"%1 > ClientAudio=On > AudioBandwidthLimit=1 > CGPAddress=*:# (use actual numbers here though) > CDMAllowed=On > CPMAllowed=On > DesiredColor=8 > ConnectionBar=0 > TWIMode=On > Compress=On > TransportDriver=TCP/IP > WinStationDriver=ICA 3.0 > BrowserProtocol=HTTPonTCP > DriverName= PDCOMP.DLL > DriverNameWin16= PDCOMPW.DLL > DriverNameWin32= PDCOMPN.DLL > %icafile% bat file, I create an ICA file passing in the username paramter as follows: off
#Citrix published application not launching code#
bat file from my C# code by using the following: Process proc_Launch = new Process() I'm approaching the point where I'm just going to try it regardless because I'm completely out of ideas. If this is wrong, however, please let me know.

I feel like I have tried every combination of /'s \'s and "'s so if anybody could please help me out with the syntax, I'd really appreciate it! I did try looking into the ICA Client SDK in the c# code, but it seems to just manually do what an external ICA file will do. Everything works except passing the parameter through, and I have no idea where the parameter is lost, if it even gets anywhere. I made sure to include the " %*" at the end of the commandlineexecutable in the Citrix Xenapp application location properties to ensure that it can accept a command line parameter. The exe is expecting a parameter " username" and when called locally from the cmd prompt it works using UsernameProgram.exe /username=somebodysname.

I've even tried just hardcoding the name in there and I can't get it to go through. I've also tried /username and \Param=SomebodysName and I can't get any of those to work either. I used Citrix QuickLaunch to write my ICA file, in which the only thing I changed was InitialProgram=#ApplicationName \Param (I added the \Param). I've also tried for the parameter syntax: /username=SomebodysName, /Param:"/username=SomebodysName"Īnd about a million other combinations of quotes and slashes.

I have a web app with cmd line code using "C:\Program Files (x86)\Citrix\ICA Client\Wfica32.exe" C:\someICAfile.ica \Param:"/username=SomebodysName". I'm trying to send a simple string parameter from C# web app code using CMD line call to ICA file to Citrix XenApp Server to launch a specific published application (Macro Scheduler macro compiled into exe), NOT the whole citrix desktop.
