简体   繁体   English

如何从Windows 8.1商店应用程序运行.exe文件?

[英]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.

相关问题 无法从Windows 8.1运行时Windows Store应用程序项目访问.resx文件 - Unable to access .resx file from Windows 8.1 Runtime windows store app project 如何从Windows Store应用程序调用.exe文件? - How to Call .exe file from Windows Store Apps? 如何在Visual Studio中使用C#代码从Windows 8.1商店应用程序重新启动Windows设备? - How to restart a windows device from my windows 8.1 store app using c# code in visual studios? Windows 8.1存储应用程序使用身份验证和标头下载文件 - Windows 8.1 store app Download file using authentication and header 如何在Windows Store 8.1应用中获取应用内存使用情况? - How to get App Memory Usage in Windows Store 8.1 app? Windows 8.1存储应用程序C#中从字符串到对象的转换 - Conversion from string to object in Windows 8.1 store app c# 从商店下载Windows Phone 8.1应用程序时崩溃 - Windows Phone 8.1 app crashes when downloaded from store 从动态数据生成PDF-Windows 8.1 Store App - Generate PDF from Dynamic data - Windows 8.1 store app Windows 8.1应用商店中从字符串到对象的转换 - Conversion from string to object in Windows 8.1 store app 从Windows 8.1商店应用程序中的流中解析XML - Parse XML from a stream on Windows 8.1 store app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM