Internal Variables Listed by Category

Print Topic  Return to Overview  Previous Topic  Next Topic 

 

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

_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 64: 1; else 0

 

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

_detachpid

Process ID of most recent detached process

_dname

Name of the description file.

_echo

Echo status

_editmode

Insert mode: 1; else 0

_exit

TCC exit code

_expansion

Current expansion mode (SETDOS /X)

_hlogfile

Current history log file name

_iftp

IFTP session active: 1, otherwise 0

_iftps

IFTPS session active: 1, otherwise 0

_ininame

Full pathname of the current INI file

_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

_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

_tcfilter

Current filter in List view window

_tcfolder

Selected folder in Folders window

_transient

Current process is a transient shell: 1, otherwise 0

_unicode

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

_monitor

Number of monitors

_row

Current cursor row

_rows

Screen height

_vxpixels

Virtual screen horizontal size

_vypixels

Virtual screen vertical size

_xpixels

Physical screen horizontal size in pixels

_ypixels

Physical screen vertical size 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

_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 9601 format

_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

 

 

Topic "variablecats.htm" last edited 3/27/2008. ©2008  JP Software, Inc.
Keywords: Internal Variables,Variables