Directives

Documentation > Directives






for command line uses
Structure Section:
only useful if used from command line !
$( is the separator between initialization and repeated commands.
)$ is the separator between repeated and finalization commands.
$; is the separator between 2 line.

Redirection Section:
only useful if used from command line !
$I is redirection ( < )
$O is redirection ( > ).
$A is redirection ( ).
$P is redirection ( | ).
For each file uses

File Section:
$f replace the complete filename (with path).
$p replace the path.
$p! replace the path without the Drive Letter starting at first \.
$p1 $p2 ..* $p9 replace the previous ith folders
ex: for file Z:\f9\f8...\f2\f1\myFile.ext
- $p1 is f1
- $p2 is f2\f1
- $p3 is f3\f2\f1
- ....

$p+1 $p+2 ....$p+9 replace the previous i paths
ex: for Z:\f9\f8...\f2\f1\myFile.ext
- $p+1 is Z:\f9
- $p+2 is Z:\f9\f8 ....

$p-1 $p-2 $p-9 replace the previous i paths
ex: for Z:\f9\f8...\f2\f1\myFile.ext
- $p-1 is Z:\f9\f8...\f2\
- $p-2 is Z:\f9\..\f3\... .

$p*1 $p*2 ....$p*9 replace the previous i paths
ex: for Z:\f9\f8...\f2\f1\myFile.ext
- $p*1 is f8...\f2\f1
- $p*2 is f7\...\f2\f1 ....

$p#1 $p#2 ..* $p#9 replace the previous ith folders name
ex: for file Z:\f9\f8...\f2\f1\myFile.ext
- $p#1 is f1
- $p#2 is f2
- $p#3 is f3
- ....
$v replace the Drive/Volume Letter without ':'.
$n replace the file name.
$e replace the file extension without preceeding '.'
$x is $f without extension.
$z is $n without extension.

$#T is the File type (Folder | Regular File | Device File | not in FileSystem
$#A is the file attributes RWX
$#S[bKMG] is the file size in byte Kb, Mb, Gb default is byte
$#c is the creation date-time of the file
$#m is the last modification date-time of the file
$#a is the last access date-time of the file
all previous date-time use the following format YYYYmmDD-HHMMSS



Counter Section:
$i is the file index   1 to 99999999.
$c is the file counter 0000 to 9999.
$C is the file counter 000000000 to 999999999.
you can change counter start and step using ini directive in TCBL and an ini command

WDX Section:
Needs installation of SuperWDX in tcbl folder.
$! is the begin/end delimiter for calling content plugin using SuperWDX.

the syntax is the same as SuperWDX :
   $! Field:%fieldName@wdxAddon.wdx% Name:%name@filesys.wdx%$!
the syntax to use super_wdx column is :
   $!nnn$! call SUPER_COLUMN #nnn (from 1 to 999)

Call SuperWDX with an alternate file $! WdxExpression [filename]%$!
- filename must point to an accessible file
- [filename] must be glued to the terminating $!
- filename must exist before tcbl build the bat
this WDX feature is experimental and does not support languages :(





Can be used in ini file anywhere in pre cmd end parts.

Date Time Section:
$D is the day number dd.
$M is the month number mm.
$Y is the year number yyyy.
$w is the week day.
$W is the week number.
$d is the date yyyymmdd.
$t is the time hhmmss.
$T is the long date and time.
in-out files:
$L is the input file list.
$- is the output file.
clipboard:
$K is the clipboard content.
       No control is done if clipboard is multiline
To use a $ in a command, use $$ instead.

All expression with $[fpnxz] are automatically quoted (if -q is not set).