Solved

displaying echo messages

Posted on 2002-03-09
2
123 Views
Last Modified: 2010-05-02
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"
0
Comment
Question by:arichee
  • 2
2 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
Probably the best you can do is using a MsgBox statement:

MsgBox "Hello World"

Anthony
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
Comment Utility
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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now