How to start a vbs from a windows batch file?

Morning,
I'm trying to execute a vbs from a .bat file. Can someone tell me what the difference is between these statements:

start c:\lib\runit.vbc
c:\lib\runit.vbs

When I run the batch with the 'start' parameter it doesn't seem to do anything.

In the start command, you have the filename as .vbc

windows has file association and it already having that .vbs will be starting with cscript.exe

you can also, execute the .vbc file as

 
cscript.exe c:\lib\runit.vbc
 

i dont think, we can execute it as above.

so ignore the above command.

but you can execute the .vbs file using cscript.exe

1 Like