目前我的批处理文件看起来像这样
START "" ArtOfTest.Runner.exe list="P:\FAST Team\DLSectionAutomation\Test Studio Projects\SOFF_testing\TestLists\Main_SOFF.aiilist"
Pause
这个问题是list=
零件没有正确传递给程序。我需要怎么做才能传递像“ list=
”这样的参数?
目前我的批处理文件看起来像这样
START "" ArtOfTest.Runner.exe list="P:\FAST Team\DLSectionAutomation\Test Studio Projects\SOFF_testing\TestLists\Main_SOFF.aiilist"
Pause
这个问题是list=
零件没有正确传递给程序。我需要怎么做才能传递像“ list=
”这样的参数?
我对此做了一些测试。(仅供参考 - 没有解决方案)
显示.bat
@echo off
echo Param1: %1
echo Param2: %2
echo Param3: %3
echo All Params: %*
............
c:>show a=b
Param1: a
Param2: b
Param3:
All Params: a=b
c:>show a = b
Param1: a
Param2: b
Param3:
All Params: a = b
但notepad a=b.txt
打开一个名为“ a=b.txt
”的文件
诡异的...
编辑:Patrick Meinecke 的回答:
c:>show "a='b c'"
Param1: "a='b c'"
Param2:
Param3:
All Params: "a='b c'"
很可能将双引号文本视为新参数,基本上是这样传递的
START "" ArtOfTest.Runner.exe list= "P:\FAST Team\DLSectionAutomation\Test Studio Projects\SOFF_testing\TestLists\Main_SOFF.aiilist"
尝试这个
START "" ArtOfTest.Runner.exe "list='P:\FAST Team\DLSectionAutomation\Test Studio Projects\SOFF_testing\TestLists\Main_SOFF.aiilist'"