【发布时间】:2018-01-15 23:12:04
【问题描述】:
我有一个文件hello.bat,代码如下:
echo first: %1 and second: %2 > me.txt
我正在尝试使用 powershell 调用它。当我传递第一个参数时,它运行良好:
start-process hello test
但是,当我尝试像这样传递第二个参数时:
start-process hello test test2
我收到此错误:
Start-Process:找不到接受参数“test2”的位置参数
【问题讨论】:
标签: powershell batch-file