CloseAll Method (ConsoleWindow)

Class

ConsoleWindow.

Action

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

Syntax

C#
consoleWindow.CloseAll ([sCaption])
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:
// C#
consoleWindow.CloseAll("MyCommandWindow");
// VB
consoleWindow.CloseAll("MyCommandWindow")