简体   繁体   English

是否可以从 windows 任务计划程序使用/不使用命令行参数启动/触发桌面桥接应用程序 (Win32)?

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

相关问题 在启动时从Metro应用程序进入Win32桌面 - enter win32 desktop from metro app at its startup 我可以从 UWP 应用程序的进程外后台任务中启动 FullTrust Win32 应用程序吗? - Can I launch a FullTrust Win32 app from within a UWP app's out-of-process background task? 如何从 UWP 应用程序中使用命令行 arguments 实现启动 win32 exe? - How do you implement Launching a win32 exe with command line arguments from an UWP app? 如何使用UWP项目中的4个参数启动Win32可执行桌面 - How to launch win32 executable desktop with 4 arguments from UWP project 如何从任务计划程序启动 UWP 应用程序 - How to Launch UWP app from Task Scheduler 由Windows任务计划程序触发 - Trigger by Windows task scheduler 从通过Windows Task Scheduler运行的控制台应用程序启动命令外壳 - Launch a command shell from a console application run via Windows Task Scheduler 你能在 Windows 任务计划程序中从 react 本机桌面应用程序(或任何其他 js 框架)创建任务吗 - Can you create tasks in the Windows Task Scheduler from a react native desktop app (or any other js framework) 如何在没有注册的情况下从Win32使用.Net程序集? - How to use .Net assembly from Win32 without registration? 如何在C#中接收非托管Win32和Win64应用程序的Windows消息? - How to receive the windows messages of an unmanaged Win32 and Win64 app in C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM