Running a .bat file in Scheduled Task

六月ゝ 毕业季﹏ 提交于 2019-12-12 05:29:00

问题


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:


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.



来源:https://stackoverflow.com/questions/7239560/running-a-bat-file-in-scheduled-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!