[英]Is it Possible to launch/Trigger an desktop bridged app(Win32) with/without command line parameter from windows task scheduler?
I have a WPF application which is converted to UWP using the desktop bridge, Now I need to call this app/exe from windows scheduler to do some stuff.我有一个 WPF 应用程序,它使用桌面桥转换为 UWP,现在我需要从 windows 调度程序调用这个应用程序/exe 来做一些事情。 Now my problem is getting access denied .现在我的问题是访问被拒绝。 If any app trying run from task scheduler getting this access denied error.如果任何尝试从任务计划程序运行的应用程序收到此访问被拒绝的错误。
I have identified a workaround to achieve this.我已经确定了一种解决方法来实现这一目标。 My actual requirement was 'I need to trigger an action in my Desktop bridged UWP app from windows scheduler' unfortunately windows scheduler has not read/write access to the uwp apps folder我的实际要求是“我需要从 Windows 调度程序触发我的桌面桥接 UWP 应用程序中的操作”不幸的是,Windows 调度程序没有对 uwp 应用程序文件夹的读/写访问权限
The workaround was I have packaged a simple exe along with my UWP app package during first launch of the app the packaged exe will be copied to outside uwp sandbox, from the windows schedule I will execute this copied 'exe' say sample.exe and sample .exe will send a customer windows message to my UWP app.解决方法是我在第一次启动应用程序时打包了一个简单的 exe 和我的 UWP 应用程序包,打包的 exe 将被复制到外部 uwp 沙箱,从 Windows 计划中,我将执行这个复制的“exe”,比如 sample.exe 和 sample .exe 将向我的 UWP 应用发送客户 Windows 消息。
The work around provided by thunderbird would work only with the Desktop Bridged UWP app. thunderbird 提供的解决方法仅适用于桌面桥接 UWP 应用程序。 Native UWP app cannot do this way.原生 UWP app 不能这样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.