StdOut.Write

Echo text to the screen (Stdout)

Syntax 
      WScript.StdOut.Write("text string to display")

      WScript.StdOut.Write(strMyTextVariable)

Unlike the Wscript.Echo command, Stdout.Write allows you to write multiple separate items to the same line, use .WriteBlankLines(n) to add newlines.

Examples

  Set objStdOut = WScript.StdOut
objStdOut.Write "User: "
objStdOut.Write "Joe Smith" objStdOut.WriteBlankLines(1) objStdOut.Write "Procurement Dept"

Play the default beep:

wscript.stdout.write Chr(07)

The default beep is now played through the speakers/audio system, however if you select the 'no sounds' scheme in Contol Panel > Sounds > Change system sounds, then the default beep will not play.

“A truth that's told with bad intent, Beats all the lies you can invent” - William Blake

Related:

.Echo
Echo, popup - .Popup
MsgBox - Display a dialogue box message.
Equivalent Windows CMD command: ECHO - Display message on screen.
Equivalent PowerShell cmdlet: Write-Host


 
Copyright © 1999-2021 SS64.com
Some rights reserved