
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.

#Citrix xenapp file cant be sent by email code#
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.
