OPC Web Client
Home Product
Details Free 
Demo Pricing &
Ordering Related
Products Support About Us

Back to all documents

Frequently Asked Questions
I am using scripting, how do I specify output to the console instead of a dialog box?

If you have created a script and when it runs all output is in the form of Dialog prompts, then you will most likely want to switch it to display output to the console instead.

You want to replace individual prompts for messages:

... with output to the console window instead:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Key Greenhouse
   Name: Greenhouse
   ItemID: Greenhouse
   IsBranch: True
   IsLeaf: False
   HasChildren: True
Key Trends
   Name: Trends
   ItemID: Trends
   IsBranch: True
   IsLeaf: False
   HasChildren: True
Key Simulation
   Name: Simulation
   ItemID: Simulation
   IsBranch: True
   IsLeaf: False
   HasChildren: True

The way you do this is to specify if you want to use Windows hosting or Console hosting. Entering the following commands will activate the appropriate scripting host:

  • wscript //h:cscript
  • wscript //h:wscript

Upon pressing the ENTER key, your scripting host will be either via the Console, or via Windows.

Copyright Software Toolbox, Inc., 1996-2004, All Rights Reserved Worldwide.
148A East Charles Street, Matthews, North Carolina, USA 28105
Phone: 704-849-2773 or 1-888-665-3678 (US), Fax: 704-849-6388
sales@softwaretoolbox.com | support@softwaretoolbox.com