Purpose:Minimize or maximize the current window, restore the default window size, or change the window title

 

Format:WINDOW [ MAX | MIN | RESTORE | HIDE | TRAY | TOPMOST | NOTOPMOST | TOP | BOTTOM | DETACH | /POS=left,top,width,height | /SIZE=rows,columns | /TRANS=n | /FLASH=type,count | "newtitle"  ]

 

newtitle

A new title for the window

height

New height of window

width

New width of window

left

New position of the left border of window

top

New position of the top border window

rows

New height of window

columns

type

count

New width of window

Type of window flash

Number of times to flash the window

 

/FLASH/SIZE (of screen buffer)

/POS(ition)

 

See also: ACTIVATE and TITLE.

 

Usage:

 

WINDOW is used to control the appearance and title of the current (TCC) window.

Numeric input may be entered in either decimal format (a sequence of 0-9 digits) or in hexadecimal format ("0x" followed by a sequence of 0-F hex digits).

 

If you are running in a Take Command tab window, the MAX, MIN, RESTORE, HIDE, TRAY, TOPMOST, NOTOPMOST, TOP, BOTTOM, and /TRANS options will be sent to the main Take Command window, not the TCC window.

 

Note: You can specify only one WINDOW option at a time. The different options cannot be combined in a single WINDOW command. To perform multiple operations you must use multiple WINDOW commands.

 

Options:

 

Option

Description

/POS=left,top,width,height

Set the window position and size on the desktop. The values are specified in pixels. Left and top refer to the position of the top left corner of the window relative to the top left corner (0,0) of the screen. The width and height values determine the window size. The window may be sized and positioned so that parts of it are beyond the physical area of the display. The / before the keyword is optional. /POS is not supported in Take Command tab windows (use ACTIVATE instead).

/TRANS=n

Set the transparency level of the Take Command window. n is an value from 0 (invisible) to 255 (opaque).

/FLASH=type,count

Flash the TCC or Take Command window. The arguments are:

type - type of flash; one or more of the following values:

0 - stop flashing

1 - flash the window caption

2 - flash the taskbar button

4 - flash continuously until WINDOW is called again with the /FLASH type set to 0

2 - flash continuously until the window comes to the foreground (cannot be used with 4)

count - the number of times to flash the wndow

newtitle

Changes the window title. The title text must be enclosed in double quotes. (The quotes will not appear as part of the actual title as displayed.) Setting the title inside a batch file will only change the window title while the batch file is executing.

MAX

Expands the window to its maximum size.

MIN

Reduces the window to an icon.

RESTORE

Returns the window to its default size and location.

HIDE

Makes the window invisible. Use RESTORE to make the window visible.

TRAY

Moves the window to the taskbar tray.

/SIZE=rows,columns

Specify the TCC screen buffer size. Due to the design of Windows console sessions, you cannot use /SIZE to reduce the size of the screen buffer; it can only be increased. Does not affect window size.

TOPMOST

Keeps the Take Command window on top of all other windows until it closes, or NOTOPMOST is used. (Only valid in a tab window.)

NOTOPMOST

Allows other windows to overlay the Take Command window (this is the normal state for most windows). (Only valid in a tab window.)

TOP

Moves the Take Command window to the top of the window order, above all other non-TOPMOST windows. (Only valid in a tab window.)

BOTTOM

Moves the Take Command window to the bottom of the window order. (Only valid in a tab window.)

DETACH

Detach TCC from a Take Command tab window.