Reputation: 1170
how can i start a process like rasphone.exe by code in windows 8 metro application? there is System.Diagnostics.Process but the System.Diagnostics in metro application doesn't contain process
Upvotes: 2
Views: 3586
Reputation: 3023
Carl's answer is right. You could use a trick though: Create a normal .NET application without UI that gets the name of an executable passed in a file with a dedicated extension (like .launcher). This application would launch the application that is passed via the Process class. In Windows 8 the dedicated extension must be associated with the launcher application. That unfortunately must be done by hand (or maybe using a small setup application the user has to execute).
In the Windows Store App you can then create a .launcher file with the path to the executable and launch this via the Launcher class.
Upvotes: 2