-->

批处理文件手动,但不运行通过Windows 10任务计划(Batch file runs manua

2019-10-29 12:58发布

我真的需要上运行的帮助.bat从任务计划文件。

它运行的位置运行时或当Run从任务计划程序点击。

按计划,当它不运行Run only when user is logged on / Run when user is logged on or not

用户是我的本地帐户也是管理员

.bat文件存储在C:\Users\user1\eclipse-workspace\abc\ ,而这也正是II已经填充到用于Program/ScriptSettingsActions选项卡。

我都不选中下的所有选项Conditions选项卡,(试过检查power选项, 仍然没有工作 )。

我宁愿有这个选项设置:: Run when user is logged on or not

我想知道我失踪或者我要去哪里错。

.bat文件的代码是:

cd C:\Users\user1\eclipse-workspace\abc
set ProjectPath=C:\Users\user1\eclipse-workspace\abc
echo %ProjectPath%
set classpath=%ProjectPath%\bin;%ProjectPath%\Lib\*
echo %classpath%
java org.testng.TestNG %ProjectPath%\testng.xml
pause
文章来源: Batch file runs manually but not through Windows 10 Task Scheduler