Solved

displaying echo messages

Posted on 2002-03-09
2
128 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6853911
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
ID: 6853917
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

749 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