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"
aricheeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Anthony PerkinsConnect With a Mentor Commented:
Having said that, you may also want to take a look at the following articles from MSDN:

INFO: Certain WScript Methods and Properties Not Accessible in Visual Basic (Q279164)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q279164

HOWTO: Attach a Console Window to Your Visual Basic Program (Q171654)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q171654

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

MsgBox "Hello World"

Anthony
0
All Courses

From novice to tech pro — start learning today.