Link to home
Start Free TrialLog in
Avatar of arichee
arichee

asked on

displaying echo messages

I'm running a compiled vb module from the command line and would like messages printed for debugging purposes.  I tried the below, which works fine in vbscript, but I get an "object not found" error in compiled vb.

set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo "Hello World"
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Probably the best you can do is using a MsgBox statement:

MsgBox "Hello World"

Anthony
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial