|
|
|
|

|
|
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.
|
|

|
|
|