.VBS message box not working?

August 4, 2014 at 13:44:20
Specs: Windows 64
Any ideas on why Im getting an error message when I try to run this .vbs?I would run it in from a batch and it would run, now for some reason its not running.

> nodet.vbs ECHO WScript.Echo InputBox( "Wrong answer. try Again", "Try again" , "" )
FOR /F "tokens=*" %%A IN ('CSCRIPT.EXE //NoLogo nodet.vbs') DO SET cha=%%A


From here I use a if function based on what %cha% is?

VBS gives an error message saying
Error: Expected ')'
Line: 1


See More: .VBS message box not working?

Report •

#1
August 4, 2014 at 14:05:16
Have you looked in your .VBS to see what's actually put into it?

How To Ask Questions The Smart Way


Report •

#2
August 8, 2014 at 10:02:34
Yes I dont see anything worng, and still doesnt work.

Report •

#3
August 8, 2014 at 10:13:38
Post the contents of the .VBScript. The one actually generated from the batch script. Not the one you created manually before copying into the batch script.

Or don't, use this line, and wonder why this version works when yours doesn't:

> nodet.vbs ECHO WScript.Echo InputBox( "Wrong answer. try Again", "Try again" , "" ^)

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question