Echo a text string to the screen (cscript) or a dialogue box (wscript)
Syntax WScript.Echo [Arg1] [,Arg2] [,Arg3] ... Arguments: Arg1, Arg2, Arg3 ... Optional string values to be displayed. If no arguments are provided a blank line is output. Examples WScript.Echo "Hello" WScript.Echo Set WshNetwork = WScript.CreateObject("WScript.Network") WScript.Echo "Your Computer Name is " & WshNetwork.ComputerName WScript.Echo "Your User Name is " & WshNetwork.UserName ECHO can be suppressed by setting .Interactive to false e.g. WScript.Echo("Hello") WScript.Interactive = false WScript.Echo("This wont display") WScript.Interactive = true WScript.Echo("This will display")
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo Inc, 1989
Related commands:
Echo, popup - WshShell.Popup
Equivalent Windows NT command:
ECHO - Display message on screen