0
我想一个VBS变量作为参数传递到我的批处理文件:通vbs的变量的批处理文件
VBS代码:
Set WShShell = CreateObject("WScript.Shell")
dim nextday
nextday= DateAdd("d",1,dtmStart)
strRun = "Batch1.bat" & nextday
WshShell.Run(strRun)
批号:
"C:\AscendQrx\bselstmt.exe" NOCONFIRM DATABASE=ddd var=ccc date=nextday
获取错误的语法错误。
开始把蝙蝠的名称和日期之间的空间:' strRun =“Batch1.bat”&nextday'。然后在.bat中选择(唯一的)命令行参数:'... date =%1'。 – 2013-02-26 21:47:59
[从vbscript传递变量到批处理文件]的可能重复(http://stackoverflow.com/questions/2536695/passing-variable-from-vbscript-to-batch-file) – 2013-02-26 21:51:56