none
Launching a Via Desktop App RRS feed

All replies

  • I think that you need to clarify your question. You should define what you mean by "launch". It is usually taken to mean "start" an application, but this meaning doesn't make too much sense in the context of your query. You need to elaborate and explain what it is exactly that you are trying to accomplish. The terms that you used in your short question are too generic and ambiguous to let us understand what you want.
    Thursday, January 3, 2019 6:06 PM
    Moderator
  • Hi ItzBaylorBruh,

    As Alberto Poblacion mentioned, it will be beneficial to resolve the issue if you describe the issue in detailed. 

    Do you want to launch a process via C#. if so, you could consider Process Class    to achieve it. like this:

    Process myProcess = new Process();
    
                try
                {
                    myProcess.StartInfo.UseShellExecute = false;
                    // You can start any process, HelloWorld is a do-nothing example.
                    myProcess.StartInfo.FileName = "C:\\HelloWorld.exe";
                    myProcess.StartInfo.CreateNoWindow = true;
                    myProcess.Start();
                    // This code assumes the process you are starting will terminate itself. 
                    // Given that is is started without a window so you cannot terminate it 
                    // on the desktop, it must terminate itself or you can do it programmatically
                    // from this application using the Kill method.
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                }
    

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, January 4, 2019 1:29 AM
    Moderator