I have these 2 files a.vbs and a.bat each has only one line.
a.vbs
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
a.bat
copy c:\blah\y.y c:\
When it works, it runs a.bat quietly in the background, which does the file copy.
I can do start..run...a.vbs a.bat That works. I can open a command prompt and do wscript a.vbs a.bat
But the thing that doesn't work, is this
start...run...wscript a.vbs a.bat
if I put an msgbox in a.vbs, it's clear that runs. But it looks like a.bat doesn't run when using that method..
Howcome that form doesn't work?