我真的需要上运行的帮助.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/Script
下Settings
在Actions
选项卡。
我都不选中下的所有选项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