Take Command / TCC Help v. 13.03

Internal Variables Listed by Category

Hide Navigation Pane

Internal Variables Listed by Category

Previous topic Next topic No directory for this topic No expanding text in this topic  

Internal Variables Listed by Category

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for expanding text JavaScript is required for the print function Mail us feedback on this topic!  

Comments (...)

 

Onestep        TCC status

Onestep        Compatibility

Onestep        Dates and times

Onestep        Drives and directories

Onestep        Error codes

Onestep        Hardware status

Onestep        Operating system and software status

Onestep        Screen, color, and cursor

 

The list below gives a one-line description of all Internal Variables and a cross reference which selects a separate help topic on that variable. Many variables are simple enough that the one-line description is probably sufficient, but in most cases you should check for any additional information in the cross referenced explanation if you are not already familiar with a variable. You can also obtain help on any function with a HELP variablename command at the prompt. See the HELP command for details

 

 

Hardware status

_acstatus

AC line status

_alt

Alt key depressed

_battery

Battery status

_batterylife

Remaining battery life, seconds

_batterypercent

Remaining battery life, %

_capslock

CapsLock on: 1, otherwise 0

_cpu

CPU type

_cpuusage

CPU time usage (percent)

_ctrl

Ctrl key depressed: 1, otherwise 0

_kbhit

A keyboard input character is waiting: 1, otherwise 0

_lalt

left Alt key depressed: 1, otherwise 0

_lctrl

left Ctrl key depressed: 1, otherwise 0

_lshift

left Shift key depressed: 1, otherwise 0

_numlock

NumLock on:r 1, otherwise 0

_ralt

right Alt key depressed: 1, otherwise 0

_rctrl

right Ctrl key depressed: 1, otherwise 0

_rshift

right Shift key depressed: 1, otherwise 0

_scrolllock

ScrollLock on: 1, otherwise 0

_shift

Shift key depressed: 1, otherwise 0

 

Operating system and software status

!

Last argument of previous command

_admin

1 if administrator; else 0

_ansi

ANSI X3.64 status

_boot

Boot drive letter, without a colon

_codepage

Current code page number

_country

Current country code

_dos

Operating system type

_dosver

Operating system version

_elevated

1 if the TCC process is elevated (Vista or later only)

_host

Host name of local computer.

_hwprofile

Windows hardware profile if defined

_idleticks

Milliseconds since last user input

_ip

IP address(es) of local computer.

_osbuild

Windows build number

_tctab

Running inside Take Command: 1; else 0

_virtualpc

Running inside VirtualPC: 1; else 0

_vmware

Running inside VMWare: 1; else 0

_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 in Windows x64: 1; else 0

_wow64dir

System WOW64 directory

_x64

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

 

TCC status

_4ver

TCC version

_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

_bdebugger

Batch debugger active: 1, otherwise 0

_build

Build number

_childpid

Process ID of most recent child process

_cmdline

Current command line

_cmdproc

Command processor name

_cmdspec

Full pathname of command processor

_consoleb

Handle to the active console screen buffer

_detachpid

Process ID of most recent detached process

_dname

Name of the description file.

_echo

Echo status

_editmode

Default insert mode: 1; else 0

_execarray

Array elements assigned by the last @EXECARRAY

_exit

TCC exit code

_expansion

Current expansion mode (SETDOS /X)

_hlogfile

Current history log file name

_ide

In the IDE / debugger: 1, else 0

_iftp

IFTP session active: 1, otherwise 0

_iftps

IFTPS session active: 1, otherwise 0

_ininame

Full pathname of the current INI file

_insert

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

_logfile

Current log file name

_parent

Name of the parent process

_pid

The TCC process ID (numeric)

_pipe

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

_ppid

Process ID of parent process

_registered

Registered user name

_selected

Selected text in current tab window

_service

TCC is a service: 1, else 0

_shell

Shell level

_shells

Shell level (old style)

_shortcut

Pathname of shortcut that started this process

_shralias

SHRALIAS is loaded: 1, otherwise 0

_startpath

Startup directory of current shell.

_startpid

Process ID of most recent STARTed process

_stdin

STDIN redirected: 0, otherwise 1

_stdout

STDOUT redirected: 0, otherwise 1

_stderr

STDERR redirected: 0, otherwise 1

_tctabactive

TCC is the active Take Command tab: 1, else 0

_tcexit

Current value of TCEXIT.*

_tcfilter

Current filter in List view window

_tcfolder

Selected folder in Folders window

_tcstart

Current value of TCSTART.*

_tctabs

Current number of Take Command tab windows

_transient

Current process is a transient shell: 1, otherwise 0

_unicode

TCC uses unicode for redirected output: 1, otherwise 0

_vermajor

TCC major version

_verminor

TCC minor version

_version

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

 

Screen, color, and cursor

_bg

Background color at cursor position

_ci

Current text cursor shape in insert mode

_co

Current text cursor shape in overstrike mode

_column

Current cursor column

_columns

Virtual screen width

_fg

Foreground color at cursor position

_monitors

Number of monitors

_row

Current cursor row

_rows

Screen height

_selected

Selected text in current tab window

_vxpixels

Virtual screen horizontal size

_vypixels

Virtual screen vertical size

_xmouse

Column of last mouse click

_xpixels

Physical screen horizontal size in pixels

_xwindow

Width of Take Command or TCC window in pixels

_ymouse

Row of last mouse click

_ypixels

Physical screen vertical size in pixels

_ywindow

Height of Take Command or TCC window in pixels

 

Drives and directories

_afswcell

OpenAFS workstation cell

_cdroms

List of CD-ROM drives

_cwd

Current drive and directory

_cwds

Current drive and directory with trailing \

_cwp

Current directory

_cwps

Current directory with trailing \

_disk

Current drive

_drives

List of all available drives

_dvds

List of DVD drives

_hdrives

List of hard (fixed) drives

_lastdir

Previous directory (from directory history)

_lastdisk

Last valid drive

_openafs

OpenAFS service installed: 1, otherwise 0

_ready

List of ready (accessible) drives

 

Dates and times

_date

Current date

_datetime

Current date and time, yyyyMMddhhmmss

_day

Current day of the month

_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

_dst

Daylight savings time: 1, else 0

_hour

Current hour

_idow

Current day of the week, local language, short

_idowf

Current day of the week, local language, full

_imonth

Current month name, local language, short

_imonthf

Current month name, local language, full

_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

_minute

Current minute

_month

Current month of the year as integer

_monthf

Current month of the year, English, full

_second

Current second

_stzn

Name of time zone for standard time

_stzo

Offset in minutes from UTC for standard time

_time

Current time

_tzn

Name of current time zone

_tzo

Offset in minutes from UTC for current time zone

_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

_year

Current year

 

Error codes

?

Exit code, last external program

_?

Exit code, last internal command

errorlevel

Exit code, last external program

_execstr

Last @EXECSTR return code

_ftperror

Last FTP error code

_syserr

Latest Windows error code

 

Compatibility

=

Substitutes the TCC escape character

+

Substitutes command separator

 

Comments (...)