繁体   English   中英

如何从任务计划程序启动 UWP 应用程序

[英]How to Launch UWP app from Task Scheduler

我有一个应用程序,可以将 UWP InkCanvas 图纸从 UWP 本机 ISF 转换为 SVG。 I need to run it daily, and the conversion logic does not work in either Console apps, WPF apps or Windows Forms apps with Ink Canvas - as there appear to be differences between as to how InkCanvas data is serialized on these other platforms.

我正在寻找一种按计划启动 UWP 应用程序的方法 - 因此,非常感谢任何指向该方向的指针。

我知道以这种方式使用 UWP 应用程序可能不是推荐的方案 - 不幸的是,我无法控制最初生成这些图纸的应用程序 - 但我确实需要将它们转换为 SVG。

如果您的 UWP 应用程序已注册到 URI 模式,则操作相对简单。

对于计划任务集explorer.exe作为应用, your-app-schema://作为参数。

计划任务设置

您可以在Settings -> Apps -> Default Apps -> Choose default apps by protocol下检查架构和注册的应用程序。 例如 Windows 计算器注册为calculator://

您可以使用此处的说明为您的应用程序(如果您开发它)注册协议: https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/automate-launching-uwp-apps#protocol -激活

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM