General Question

FiRE_MaN's avatar

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

Asked by FiRE_MaN (684points) May 30th, 2009
2 responses
“Great Question” (0points)

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=]

Topics: , , ,
Observing members: 0
Composing members: 0

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.

Mobile | Desktop


Send Feedback   

`