Running a .bat file in Scheduled Task

2019-09-02 10:07发布

I am using a Windows Server 2008 machine where I need to run a batch file as a Scheduled Task. The scheduled batch file is not running, but when I click the batch file manually its running with no problem.

The Content of the batch file is as follows:

  cd E:\SOAPUI\soapui-2.0.2\bin
  e:
  testrunner.bat -sDev_Test -a -j -f "D:\DocRepos\LensWebSvc\SOAPUI-Reports(Lens)"                 
  "D:\DocRepos\LensWebSvc\SOAPUI\LensWebServiceTest(Lens)-soapui-project.xml"

Can anyone help me to run the batch file in scheduled task?

1条回答
Root(大扎)
2楼-- · 2019-09-02 10:32

It could be a few things. Make sure you've set the task to start in the same path that the batch file is located. Also, make sure the account running the task has permission to run the task and access the location of the batch file.

查看更多
登录 后发表回答