troubleshooting Question

Passing variable to a launch application

Avatar of smoyano
smoyano asked on
.NET ProgrammingC#
5 Comments1 Solution1173 ViewsLast Modified:

We've developed a windows application that is installed locally with MS click-once installation.  I would like create another windows application that would launch the first applicaiton and I was able to do this by calling the application reference in the start menu.  But, I am unable to pass a variable to the application referecne in the start menu.  On the development machine if I call the Program1.exe the variable is passed.  But since this application would be installed on a client machine I am calling the application reference in the start menu.  How can I pass the variable to the program1 if I am launching it from its application reference?

Process objProcess = new Process();
objProcess.StartInfo.FileName = "C:\\Documents and Settings\\user\\Start Menu\\Programs\\Program1\\Program1.appref-ms";
objProcess.StartInfo.Arguments = "hello";
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros