-1
我试图搜索我有的问题,但无法找到任何联机。 她是我想做的事情:当我运行test.vbs文件时,我接受用户输入,然后将它传递给批处理文件。800A01C2 - 错误的参数数量或无效的财产分配
我得到这个错误:
800A01C2 - Wrong number of arguments or invalid property assignment
在VBScript代码行4。
这里是我的test.vbs代码:
Set WshShell = CreateObject("WScript.Shell")
strInput = InputBox("Please enter the date (yyyymmdd)", "Enter Date")
set strInput = WScript.Arguments
WshShell.Run "mybatch.bat" & strInput, 0
只是一个简单的代码输出从VBS传递到批处理文件中的参数:
echo Parameter = %1 > Var.txt
非常感谢。这样可行! – Josie
@Josie如果你发现它解决了你的问题,请考虑[接受答案](http://meta.stackoverflow.com/a/5235)。 –