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

Print Topic  Return to Overview  Previous Topic  Next Topic 

+

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

_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

errorlevel

Exit code, last external program

_execstr

@EXECSTR return code

_exit

TCC exit return code

_expansion

SETDOS /X value

 

_fg

Foreground color at cursor position

_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

 

_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

_ip

IP address(es) of local computer.

_isodate

Current date in ISO 9601 format

 

_kbhit

Keyboard input character is waiting: 1, else 0

 

_lalt

left Alt key depressed: 1, else 0

_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

_shell

Shell level

_shells

Shell level (old style)

_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

 

_tcfilter

Current filter in List view window

_tcfolder

Selected folder in Folders window

_tctab

Running inside Take Command: 1; else 0

_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

 

_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

 

_xpixels

Physical screen horizontal size in pixels

 

_year

Current year

_ypixels

Physical screen vertical size in pixels

 

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