[UWP] [桌面转换器]如何从任务调度程序向我的UWP应用程序传递参数
我们已经通过DAC转换了一个桌面应用程序。任务已成功创建但未运行。我们已经完成了以下解决方法...
We have converted one desktop application by DAC. The task is created successfully but it doesn't run. We have done following workarounds...
命令:explorer.exe
Command : explorer.exe
参数:shell:AppsFolder \ MywW_jq2bw8qh45nmc!MyUWP
Arguments : shell:AppsFolder\MyUWP_jq2bw8qh45nmc!MyUWP
它由任务调度程序正确启动应用程序,但我们无法将参数传递给我的应用程序。我们怎么做?
It launches the application correctly by task scheduler, but we can't pass arguments to my app. How can we do that?
Hello Rajkumar,
Hello Rajkumar,
通常你会将你的应用程序注册为协议处理程序,以处理一个独特的协议,例如myuwp://
Typically you'd register your app as a protocol handler, to handle a unique protocol such as myuwp://
然后,如果你想用参数启动你的应用程序,你会启动一个网址,例如myuwp:// xyz / abc?arg1 = something& arg2 = somethingElse
Then if you want to launch your app with arguments, you'd launch a url such as myuwp://xyz/abc?arg1=something&arg2=somethingElse
有关如何为您的应用设置此功能的信息,请参阅 https://docs.microsoft.com/en-us/windows/uwp/launch-简历/手柄-URI激活。如果您有任何问题或疑虑,请告知
。
For information on how to set this up for your application, see https://docs.microsoft.com/en-us/windows/uwp/launch-resume/handle-uri-activation. Please let me know if you have any questions or concerns.
最好的问候,