Starting another program from code

Hello. I am having difficulty finding out how to do something very simple I believe. That is, I want to start another application from within my application. For example, if I were to write my own menu app and I wanted to allow the user to execute "\windows\notes.exe", how can I do this Any help would be greatly appreciated.

btw... I've researched system.diagnostics.process.start but my code editor does not seem to recognize this.



Answer this question

Starting another program from code

  • drymedia

    I am using Visual Studio 2003. .Net framework 1.1. What would I need to upgrade to VS2005
  • Steve_W

    System.Diagnostics.Process.Start() is indeed what you want. It, however, did not exsist until .NETCF 2.0. Are you using v1 or v2 What code editor are you using

    If you are still using v1, you will need to PInvoke to CreateProcess().



  • David Paterson

    Here is a link to the VisualStudio upgrades page.

    http://msdn.microsoft.com/vstudio/howtobuy/renewal/default.aspx



  • Starting another program from code