Internal Variables Listed by Name

+ A B C D E F H I K L M N O P R S T U V W X Y

+

Substitutes the TCC command separator

=

Substitutes the TCC escape character

!

Last argument of the previous command

?

Exit code, last external program

_4ver

TCC version

_?

Exit code, last internal command

 

_acstatus

AC line status

_admin

1 if an administrator, else 0

_afswcell

OpenAFS workstation cell

_alt

Alt key depressed: 1, else 0

_ansi

ANSI X3.64 status

 

_batch

Batch nesting level

_batchline

Line number in current batch file.

_batchname

Full path and filename of current batch file.

_batchtype

Type of the current batch file

_battery

Battery status

_batterylife

Remaining battery life, seconds

_batterypercent

Remaining battery life, %

_bdebugger

Batch debugger active: 1, else 0

_bg

Background color at cursor position

_boot

Boot drive letter, without a colon

_build

Build number

 

_capslock

CapsLock on: 1, else 0

_cdroms

List of the CD-ROM drives

_childpid

Process ID of most recent child process

_ci

Current text cursor shape in insert mode

_cmdline

Current command line

_cmdproc

Command processor name

_cmdspec

Full pathname of command processor

_co

Current text cursor shape in overstrike mode

_codepage

Current code page number

_column

Current cursor column

_columns

Virtual screen width

_consoleb

Handle to console screen buffer

_consolepids

Process IDs attached to this console

_country

Current country code

_cpu

CPU type

_cpuusage

CPU time usage (percent)

_ctrl

Ctrl key depressed: 1, else 0

_cwd

Current drive and directory

_cwds

Current drive and directory with trailing \

_cwp

Current directory

_cwps

Current directory with trailing \

 

_date

Current date

_datetime

Current date and time, yyyyMMddhhmmss

_day

Current day of the month

_detachpid

Process ID of most recent detached process

_disk

Current drive

_dname

Name of the description file.

_dos

Operating system type

_dosver

Operating system version

_dow

Current day of the week, English, short

_dowf

Current day of the week, English, full

_dowi

Current day of the week as an integer

_doy

Current day of the year

_drives

List of the existing drives

_dst

Daylight savings time: 1, else 0

_dvds

List of the DVD drives

 

_echo

Echo turned on: 1, else 0

_editmode

0 if in overstrike mode, 1 if in insert mode

_elevated

1 if the TCC process is elevated

errorlevel

Exit code, last external program

_execarray

Array elements assigned by the last @EXECSTR

_execstr

@EXECSTR return code

_exit

TCC exit return code

_expansion

SETDOS /X value

 

_fg

Foreground color at cursor position

_filearray

Array elements returned by the last @FILEARRAY

_ftperror

Last FTP error code

 

_hdrives

List of the fixed drives

_hlogfile

Current history log file name

_host

Host name of local computer

_hour

Current hour

_hwprofile

Windows hardware profile if defined

_hyperv

Running inside Hyper-V: 1; else 0

 

_ide

In the IDE / debugger: 1, else 0

_idleticks

Milliseconds since the last user input

_idow

Current day of the week, local language, short

_idowf

Current day of the week, local language, full

_iftp

IFTP session active: 1, else 0

_iftps

IFTPS session active: 1, else 0

_imonth

Current month name, local language, short

_imonthf

Current month name, local language, full

_ininame

Full pathname of the current INI file

_insert

Current input editor state (0=overstrike, 1=insert)

_ip

IP address(es) of local computer.

_ipadapter

Index of the current adapter

_ipadapters

Number of adapters in the system

_iparpproxy

Returns 1 if the local computer is acting as an ARP proxy

_ipdns

Returns 1 if DNS is enabled on the local computer

_ipdnsserver

The default DNS server for the local computer

_iprouting

Returns 1 if routing is enabled on the local computer

_isftp

IFTP SSH session active: 1, else 0

_isodate

Current date in ISO 8601 format

_isodowi

ISO 8601 numeric day of week

_isowdate

ISO 8601 current week date (yyyy-Www-d)

_isoweek

ISO 8601 week of year

_isowyear

ISO 8601 week date year

 

_kbhit

Keyboard input character is waiting: 1, else 0

 

_lalt

left Alt key depressed: 1, else 0

_lastdir

Previous directory (from directory history)

_lastdisk

Last valid drive

_lctrl

Left Ctrl key depressed: 1, else 0

_logfile

Current log file name

_lshift

Left Shift key depressed: 1, else 0

 

_minute

Current minute

_monitors

Number of monitors

_month

Current month of the year as integer

_monthf

Current month of the year, English, full

 

_numlock

NumLock on: 1, else 0

 

_openafs

OpenAFS installed: 1, otherwise 0

_osbuild

Windows build number

 

_parent

Name of the parent process

_pid

TCC process ID (numeric)

_pipe

Current process is running in a pipe: 1, else 0

_ppid

Process ID of parent process

 

_ralt

Right Alt key depressed: 1, else 0

_rctrl

Right Ctrl key depressed: 1, else 0

_ready

List of accessible drives

_registered

Registered user name

_row

Current cursor row

_rows

Screen height

_rshift

Right Shift key depressed: 1, else 0

 

_scrolllock

ScrollLock on: 1, else 0

_second

Current second

_selected

Selected text in the TCC tab window

_serialports

Display available serial pors (COM1 - COMn)

_service

TCC is a service: 1, else 0

_shell

Shell level

_shift

Shift key depressed: 1, else 0

_shortcut

Pathname of shortcut that started this process

_shralias

SHRALIAS is loaded: 1, else 0

_startpath

Startup directory of current shell.

_startpid

Process ID of most recent STARTed process

_stdin

STDIN redirected: 0, else 1

_stdout

STDOUT redirected: 0, else 1

_stderr

STDERR redirected: 0, else 1

_stzn

Name of time zone for standard time

_stzo

Offset in minutes from UTC for standard time

_syserr

Latest Windows error code

 

_tccrun

Length of time TCC session has been running

_tccstart

Time TCC session was started

_tcexit

Pathname to TCEXIT.*

_tcfilter

Current filter in the File Explorer window

_tcfolder

Selected folder in the File Explorer window

_tclistview

Selected entries in the File Explorer window

_tcstart

Pathname of the active TCSTART.*

_tctab

Running inside Take Command: 1; else 0

_tctabactive

TCC is active Take Command tab window: 1; else 0

_tctabs

Current number of Take Command tab windows

_time

Current time

_transient

Current process is a transient shell: 1, else 0

_tzn

Name of current time zone

_tzo

Offset in minutes from UTC for current time zone

 

_unicode

Shell uses unicode for redirected output: 1, else 0

_utctime

Current UTC time

_utcdate

Current UTC date

_utcdatetime

Current UTC date and time

_utchour

Current UTC hour

_utcisodate

Current UTC date in ISO format

_utcminute

Current UTC minute

_utcsecond

Current UTC second

 

_vermajor

TCC major version

_verminor

TCC minor version

_version

TCC version in major.minor format (i.e., 20.0)

_virtualbox

Running inside VirtualBox: 1; else 0

_virtualpc

Running inside VirtualPC: 1; else 0

_vmware

Running inside VMWare: 1; else 0

_vxpixels

Virtual screen horizontal size

_vypixels

Virtual screen vertical size

 

_windir

Windows directory pathname

_winfgwindow

Title of foreground window.

_winname

Name of local computer

_winsysdir

Windows system directory pathname

_winticks

Milliseconds since Windows was started

_wintitle

Current window title

_winuser

Name of current user.

_winver

Windows version number

_wow64

Running inside WOW64: 1; else 0

_wow64dir

System WOW64 directory

 

_x64

1 if TCC is the x64 (64-bit) version

_xen

Running inside Xen: 1; else 0

_xmouse

Column of last mouse click

_xpixels

Physical screen horizontal size in pixels

_xwindow

Width of Take Command or TCC window in pixels

 

_year

Current year

_ymouse

Row of last mouse click

_ypixels

Physical screen vertical size in pixels

_ywindow

Height of Take Command or TCC window in pixels