Skip to content

Environment variables

ccfs edited this page Oct 26, 2023 · 20 revisions

You can use Windows and TE environment variables in:

  • Address bar
  • Options > Add-ons > Options -- Options (for certain Type) / Icon path
  • Options > Menus -- Name / Options (for certain Type) / Icon path
  • Options > List > Filter
  • Options > Tabs -- New tab

Environment variable names are not case-sensitive.

Provided by TE

TE environment variable Description In quotes if needed Example
%Current% Path of current tab Yes "C:\Program Files"
%Selected% Paths of selected items in current file list (in one line §), OR Yes "C:\Program Files\Common Files" "C:\Program Files\Windows NT"
Path of selected tree node when the focus is on a folder tree, OR Yes "C:\Program Files (x86)"
Path of right-clicked item on a folder menu Yes "C:\Windows\Downloaded Program Files"
%TreeSelected% Path of selected tree node Yes "C:\Program Files (x86)"
%MenuSelected% Path of selected item on a folder menu (Key add-on > "Menus" only) Yes "C:\Windows\Downloaded Program Files"
%Installed% Drive on which TE is installed D:
%TE_Config% Path of TE config folder No D:\apps\Tablacus Explorer\config
%AddonStatus:AddonID% Status of the add-on: on or off

Provided by Switch to previous pane / Switch to next pane add-on

TE environment variable Description In quotes if needed Example
%PrevPane% Path of current tab on previous pane Yes "C:\Program Files"
%Other% Path of current tab on next pane Yes "C:\Program Files (x86)"

Provided by X-Finder add-on

TE environment variable Description In quotes if needed Example
%Address% Path of current tab OR last entered command No C:\Program Files\Windows NT\TableTextService
%TabName% Name of current tab TableTextService
%TabColor% Codes of background and text colors of current tab (set by Color labels, Change tab color or Tab color plus add-on) [1] #ffff80
#0000ff
%CurrentSelected% Paths of selected items in current file list (in one line, in sequence) Yes "C:\Program Files\Windows NT\TableTextService\en-US" "C:\Program Files\Windows NT\TableTextService\TableTextServiceArray.txt"
%Focused% Path of focused item No C:\Program Files\Windows NT\TableTextService\TableTextServiceAmharic.txt
%FocusedName% Name of focused item (without extension) TableTextServiceAmharic
%Attrib% Attributes (Read-only / Archive / System / Hidden) of focused item -R +A -S -H
%TimeStamp:format% Modified date and time of focused item 2009/6/11 05:04:22
%FileContents% Text contents of focused item [1] [System]
LangId = LANG_AMHARIC, SUBLANG_AMHARIC_ETHIOPIA …
%Other% Path of current tab on next pane Yes "C:\Program Files (x86)"
%Clipboard% Contents of Windows Clipboard [1]:
* Paths of cut/copied files/folders [2], OR No C:\Program Files\Windows NT\TableTextService\en-US
C:\Program Files\Windows NT\TableTextService\TableTextServiceArray.txt
* Cut/copied text line 1
line 2
%Clipboard1% Contents of Windows Clipboard (in one line):
* Paths of cut/copied files/folders [2], OR Yes "C:\Program Files\Windows NT\TableTextService\en-US" "C:\Program Files\Windows NT\TableTextService\TableTextServiceArray.txt"
* Cut/copied text line 1 line 2
%InputData% Your input to "Input:" command, OR
Path of your choice from "ChooseFolder:" command No C:\Program Files (x86)
%X-Finder% Path of TE folder with \ appended No D:\apps\Tablacus Explorer\
%SendTo% Path of your "Send to" menu folder No C:\Users\CC\AppData\Roaming\Microsoft\Windows\SendTo
%SysDir% Path of System32 folder of Windows No C:\Windows\System32
%DateTime:format% Current date and time 2023/10/25 16:52:06

[1] The variable may contain multiple lines. It should be processed by JScript ExtractMacro(te, "%variable%").
[2] Use "Order of clipboard" add-on to ensure that the items will be in sequence.

Date/time format

See Options List - Date. However, the followings take precedence:

Code Format defined in Windows Control Panel > Regional and Language
ddddd Short date
dddddd Long date
tt Long time
Clone this wiki locally