从 UWP 应用运行外部 exe,解决沙盒模式 [英] Run External exe from UWP app, workaround sandboxed mode
问题描述
我有一个程序,我希望能够从我的 UWP 应用程序启动本地应用程序(例如 Spotify).我在网上搜索了一个解决方案,因为 (Process.Start()) 不起作用.据我所知,出于安全和稳定性的原因,UWP 应用程序是一种沙盒.但是有没有(简单的)方法来解决这个问题.
I have a program where i want to have the ability to launch a local application (for example Spotify) from my UWP App. I have searched the web for a solution as (Process.Start()) doesn't work. As i have understood the UWP applications is kind of sandboxed for saftey and stability reasons. But is there a (simpel) way to work around this.
我只希望能够在我自己的框架/窗口中启动和关闭程序.无需在我的应用程序和外部程序之间交互/发送/接收数据
I only want the ability to start and close a program inside my own frame/Window. No need to interact/send/recive data between my applications and the external program
推荐答案
我有一个程序,我希望能够在其中启动本地来自我的 UWP 应用的应用程序(例如 Spotify).
I have a program where i want to have the ability to launch a local application (for example Spotify) from my UWP App.
您可以使用 Windows.System.ProcessLauncher
API.
You can utilize Windows.System.ProcessLauncher
API.
这是关于如何启动外部进程的示例(exe) 来自通用 Windows 平台 (UWP) 应用,您可以参考.
Here is a sample about how to launch an external process (exe) from a Universal Windows Platform (UWP) app you can reference.
确保添加系统管理功能.
有关更多信息,请参考进程启动器.
For more information reference ProcessLauncher.
这篇关于从 UWP 应用运行外部 exe,解决沙盒模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!