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

时间:2022-09-23 02:16:25

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.

我创建了一个运行selenium测试并打开浏览器的控制台应用程序,在运行应用程序exe文件时,它在Debug和Release模式下都能正常工作。

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

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

I am using Window Server 2008 to test this application.

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

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

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

1 个解决方案

#1


1  

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

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

#1


1  

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

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