I am trying to pass a vbs variable as an argument into my batch file:
vbs code:
Set WShShell = CreateObject("WScript.Shell")
dim nextday
nextday= DateAdd("d",1,dtmStart)
strRun = "Batch1.bat" & nextday
WshShell.Run(strRun)
batch code:
"C:\AscendQrx\bselstmt.exe" NOCONFIRM DATABASE=ddd var=ccc date=nextday
Getting the error bad syntax.
strRun = "Batch1.bat " & nextday. Then in the .bat pick up the (one and only) command line parameter:... date=%1.