0

目前我的批处理文件看起来像这样

START "" ArtOfTest.Runner.exe list="P:\FAST Team\DLSectionAutomation\Test Studio Projects\SOFF_testing\TestLists\Main_SOFF.aiilist"

Pause

这个问题是list=零件没有正确传递给程序。我需要怎么做才能传递像“ list=”这样的参数?

4

2 回答 2

0

我对此做了一些测试。(仅供参考 - 没有解决方案)

显示.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'"
于 2013-07-26T08:05:14.657 回答
0

很可能将双引号文本视为新参数,基本上是这样传递的

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'"
于 2013-07-25T15:29:28.010 回答