[英]How to run .exe file from windows 8.1 store app?
I am developing a windows 8.1 store app and also, I have made an executable file for a matlab code.Now, is it possible to run an exe file from the app say for example when I press a button then it should start the executable? 我正在开发一个Windows 8.1商店应用程序,而且,我已经为matlab代码创建了一个可执行文件。现在,是否可以从应用程序运行exe文件,例如,当我按下按钮然后它应该启动可执行文件? I have already searched on google and a lot of solutions are available for running an exe file using c# but I couldn't find anywhere how to run it from the app.
我已经在google上搜索了很多可用于使用c#运行exe文件的解决方案,但我无法在任何地方找到如何从应用程序运行它。
As store apps run in sandbox mode so you can't launch file types that contain code or script if they are executed automatically by the operating system, such as, .exe, .msi, and .js files. 由于商店应用程序以沙箱模式运行,因此如果操作系统自动执行包含代码或脚本的文件类型,则无法启动它们,例如.exe,.msi和.js文件。 This restriction protects users from potentially malicious files that could modify the operating system.
此限制可保护用户免受可能修改操作系统的潜在恶意文件的侵害。 You can use this method to launch file types that can contain script if they are executed by an app that isolates the script, such as, .docx files.
如果文件类型由隔离脚本的应用程序(如.docx文件)执行,则可以使用此方法启动可包含脚本的文件类型。 Apps like Microsoft Word keep the script in .docx files from modifying the operating system.
像Microsoft Word这样的应用程序会使.docx文件中的脚本无法修改操作系统。
you can see more details about it from this link . 您可以通过此链接查看有关它的更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.