Internal Variables Listed by Category

 

Onestep        TCC status

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.

 

 

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

_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-RT process is elevated

_host

Host name of local computer.

_hwprofile

Windows hardware profile if defined

_hyperv

Running inside Hyper-V: 1; else 0

_idleticks

Milliseconds since last user input

_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

_ipdnsother

List of other DNS servers configured for the host

_ipdnsserver

The default DNS server for the local computer

_iprouting

Returns 1 if routing is enabled on the local computer

_ipv6

IP address(es) of local computer.

_osbuild

Windows build number

_serialports

Display available serial ports (COM1 - COMn)

_tctab

Running inside Take Command: 1; else 0

_virtualbox

Running inside VirtualBox: 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-RT is the x64 (64-bit) version

_xen

Running inside Xen: 1; else 0

 

TCC-RT status

_4ver

TCC-RT version

_batch

Batch nesting level

_batchline

Line number in current batch file.

_batchname

Full path and filename of current batch file

_batchpath

Pathname of the 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-RT exit code

_expansion

Current expansion mode (SETDOS /X)

_filearray

Array elements assigned by the last @FILEARRAY

_hlogfile

Current history log file name

_iftp

IFTP session active: 1, otherwise 0

_iftps

IFTPS session active: 1, otherwise 0

_isftp

ISFTP (SSH) 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

_msgbox_checkbox

Checked box in MSGBOX : 1, else 0

_parent

Name of the parent process

_pbatchname

Name of the parent batch file

_pid

The TCC-RT 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

_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

_tccinstances

Number of TCC instances

_tccrt

Running inside TCC RT: 1, else

_tccrun

Time current TCC-RT session has been running

_tccstart

Time current TCC-RT session was started

_tctabactive

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

_tcexit

Current value of TCEXIT.*

_tcfilter

Current filter in the File Explorer window

_tcfolder

Selected folder in File Explorer window

_tclistview

Selected entries in the File Explorer window

_tcmdinstances

Number of Take Command instances

_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-RT uses unicode for redirected output: 1, otherwise 0

_vermajor

TCC-RT major version

_verminor

TCC-RT minor version

_version

TCC-RT version in major.minor format (i.e., 31.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-RT window in pixels

_ymouse

Row of last mouse click

_ypixels

Physical screen vertical size in pixels

_ywindow

Height of Take Command or TCC-RT 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

 

Windows Sensor

_gpsalt

Altitude from sea level in meters

_gpsazimuth

List of the azimuth of each satellite in view

_gpselevation

List of the elevation of each satellite in view

_gpserrorradius

Accuracy of the latitude and longitude values

_gpsfixquality

Quality of the fix

_gpsfixtype

Type of the fix

_gpshdop

Horizontal dilution of precision

_gpsheading

True heading

_gpsids

List of the IDs of the satellites in view

_gpslat

Latitude

_gpslon

Longitude

_gpsmagheading

Magnetic heading

_gpsnmea

NMEA sentence

_gpsopmode

GPS operation mode

_gpspdop

Position dilution of precision

_gpsprns

List of the PRN numbers of the satellites in view

_gpssatsinview

Number of satellites in view

_gpssatsused

Number of satellites used in solution

_gpsselmode

GPS selection mode

_gpssnr

List of the signal to noise ratio of each satellite in view

_gpsspeed

Speed in knots

_gpsstatus

GPS status

_gpsvdop

Vertical dilution of precision