使用 Windows Scheduler 运行控制台应用程序

发布于 2024-12-25 02:09:02 字数 221 浏览 3 评论 0原文

我创建了一个控制台应用程序,它运行 selenium 测试并打开浏览器,当运行应用程序 exe 文件时,它在“调试”和“调试”中都运行良好。释放模式。

当我尝试使用 Windows Scheduler 安排此控制台应用程序时,它会打开命令窗口,但不会打开浏览器。

我正在使用 Window Server 2008 来测试该应用程序。

我是否需要添加一些特殊权限才能将其作为任务运行

I have created a console application which run selenium test and open up browser, when running the application exe file it works fine both in Debug & Release mode.

When I try to schedule this console application using Windows Scheduler it starts open up command window but does not open browser.

I am using Window Server 2008 to test this application.

Do I need to add some special permissions to run it as task

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回忆追雨的时光 2025-01-01 02:09:02

您是否尝试过使用特定帐户(即您的帐户)运行计划任务? LocalSystem 与“常规”用户帐户有很大不同。

Have you tried running the scheduled task with a specific account (ie, your account)? LocalSystem is quite different than a "regular" user account.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文