在计划任务中运行 .bat 文件 [英] Running a .bat file in Scheduled Task

查看:69
本文介绍了在计划任务中运行 .bat 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows Server 2008 机器,我需要将批处理文件作为计划任务运行.预定的批处理文件没有运行,但是当我手动单击批处理文件时,它的运行没有问题.

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.

批处理文件内容如下:

  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?

推荐答案

这可能是一些事情.确保您已将任务设置为在批处理文件所在的同一路径中启动.另外,请确保运行任务的帐户具有运行任务和访问批处理文件位置的权限.

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.

这篇关于在计划任务中运行 .bat 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆