Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Latest posts

How Do I Change the Title of a Message Box?
Aug 4, 2004
Post comments count 0
Post likes count 0

How Do I Change the Title of a Message Box?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Whenever I use a message box, the caption reads Windows Script Host. Is there any way to change that caption?-- TT, Reno, NV Hey, TT. To answer your question, no, not if you’re using Wscript.Echo; in that case, you’re stuck with the caption Windows Script Host. However, you can create a custom caption using the VBScript Msgbox function. For example: In this sample script, we’re passing three parameters to the Msgbox function: There’s one important thing to keep in mind here. When you use Wscript.Echo, your messages are displayed in a message box only if you are running under Wscript; if yo...