【发布时间】:2014-08-05 00:32:39
【问题描述】:
以下是在批处理文件中引用相对路径的正确方法吗:
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 ''!
【问题讨论】:
标签: shell batch-file cmd