General Question

FiRE_MaN's avatar

How to open a .vbs file from a .bat?

Asked by FiRE_MaN (684points) May 30th, 2009

im trying to run a .vbs from this .bat file. but i cant get the vbs to run! ive tried

start filename.vbs
run filename.vbs
call filename.vbs
choice filename.vbs
start /w wscript.exe filename.vbs

>_> so if anyone knows how this can be done it would be appreciated if you would answer=]

Observing members: 0 Composing members: 0

2 Answers

tallin32's avatar

Assuming you have Windows 2000, XP, Vista, or Windows 7, try the following:
cscript /nologo filename.vbs

If your script uses WScript.Echo or simular subroutines, you’ll want to use cscript rather than wscript, otherwise I seem to recall that you get message boxes for each Echo subroutine call.

Master's avatar

.vbs files many times contain viruses. Be careful!

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther