Please enable JavaScript to view this site.

Take Command / TCC Help v. 29

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 | VDESKTOP=id | "newtitle"  ]



A new title for the window


New height of window


New width of window


New position of the left border of window


New position of the top border window


New height of window




New width of window

Type of window flash

Number of times to flash the window




See also: ACTIVATE and TITLE.




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.




/=Display the WINDOW command dialog to help you set the command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.





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).


/POS accepts a * value for any of the arguments. If the value is *, WINDOW will use the existing position / width / height value. For example, to resize a window without moving it:


WINDOW /POS=*,*,1200,800


To move a window without resizing it:


WINDOW /POS=200,400,*,*


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


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

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

count - the number of times to flash the wndow


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.


Expands the window to its maximum size.


Reduces the window to an icon.


Returns the window to its default size and location.


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


Moves the window to the taskbar tray.


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.


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


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


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


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


Detach TCC from a Take Command tab window.


Move the window to another virtual desktop. Id can be either a desktop number (1-n), the GUID for that desktop, or the desktop name. See VDESKTOP for more details.