以下是在批处理文件中引用相对路径的正确方法:
if "%1" == "cd" (
pushd %~dp0
cd/
cd "C:\Program Files (x86)\Telerik\Test Studio\Bin"
ArtOfTest.Runner.exe list= "%~dp0TestListsCommunicator.aiilist" root="%~dp0" settings="%~dp0SettingsForCD.xml"
popd
)
运行此批处理文件时出错。如果这不是正确的方式,请提出正确的建议。谢谢!
显示的错误是
Error: unrecognized or incomplete command line.
Unsupported argument ''!
答案 0 :(得分:0)
ArtOfTest.Runner.exe
正在产生该错误。
尝试用ArtOfTest.Runner.exe
替换echo(
,以准确查看传递的参数。
我怀疑list=
之后的空格可能是您的问题,但我不知道ArtOfTest.Runner.exe
是什么或期望什么。