Solved

displaying echo messages

Posted on 2002-03-09
2
126 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net 2008 2 59
Excel object stays open 19 73
VBA/SQL - Connect to SQL server and pull data 4 108
Publisher:   Unknown     VB.exe Application 1 20
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

776 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