CloseAll Method (ConsoleWindow)

Class

ConsoleWindow.

Action

Closes all open consoles or all consoles with a specific caption.

Syntax

VB
consoleWindow.CloseAll ([sCaption])
Variable Description
sCaption Set this parameter to close only the consoles with this caption. STRING

Example

The following sample shows how you close all console windows with the caption MyCommandWindow:
// VB
consoleWindow.CloseAll("MyCommandWindow")