O'Reilly logo

Insider Power Techniques for Microsoft® Windows® XP by Austin Wilson, Scott Andersen, Geoff Winslow, Paul McFedries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying Text Using the WScript Object

The WScript object represents the Windows Script Host applications (Wscript.exe and Cscript.exe). This object contains a number of properties and methods, but the one you’ll use most often is the Echo method, which displays text to the user. Here’s the syntax:

WScript.Echo [Argument1, Argument2,...]

Here, Argument1, Argument2, and so on, are any number of text or numeric values that represent the information you want to display to the user. In the Windows-based host (Wscript.exe), the information is displayed in a dialog box; in the command-line host (Cscript.exe), the information is displayed at the command prompt (much like the command-line ECHO utility).

Note

For a complete reference to the Windows Script ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required