powershell - 为 Raspberry PI 2 构建 DefaultApp - Windows 10 IoT

标签 powershell win-universal-app windows-10 .net-core windows-10-iot-core

如果有人尝试使用 C# 代码在通用应用程序中执行诸如“shutdown/r/t 0”之类的 powershell 命令?有人告诉我,Windows 10 IoT 中的默认应用程序是用 C# 编写的通用应用程序,并且有一个重新启动和关闭的选项。

如果这是不可能的,请告诉我是否能够使用 C# 代码以不同的方式重新启动或关闭树莓派 2。

最佳答案

Windows Universal App - Launch CMD from app

您想要实现的目标目前看来是不可能的。

关于powershell - 为 Raspberry PI 2 构建 DefaultApp - Windows 10 IoT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32128538/

相关文章:

windows-store-apps - 在 Windows 应用商店或通用应用中注册应用失败错误

c# - 从 C# 加载 C++ Windows 运行时组件时出现异常

vbscript - 在 Windows 10 上运行的系统上设置本地计算机名称和静态 IP 地址

fonts - 如何强制Win10在C中安装字体 :\Windows\Fonts?

powershell - PowerShell PackageManagement,如何卸载软件包提供程序?

powershell - 使用脚本搜索谷歌

powershell - 使用 Powershell 和 Teamcity 部署云服务失败

windows-store-apps - 防止 Windows Store 应用程序中的像素化图像

powershell - 在 Azure Devops 的计划中执行 exe

xml - 如何使用 Powershell 解析 VS2013 csproj XML 文件以修改 PreBuildEvent