How to start a Process from a Win 8 App?

后端 未结 2 916
既然无缘
既然无缘 2020-12-21 04:47

I can’t find System.Diagnostics.Process to start a new process. I guess this is on purpose. But is there a other way? Is this even possible?

2条回答
  •  醉话见心
    2020-12-21 05:01

    Looks like it’s not possible to open any non-metro processes. You can open URLs or Files like *.txt, but not *.cmd or *.exe.

    If there is a Custom File Association you could possibly(I haven’t try this) start a process by opening an empty file with your custom filename extension. But you can’t edit the registry to add the association from your app.
    So there are no App-Only ways to do this (except not yet discovered hacks ;) ).

提交回复
热议问题