|
Variable |
Description |
| %USERID%, %NTUSER% |
NT User ID |
| %APPPATH% |
Application path |
| %DATE% |
Actual date in default short format |
| %TIME% |
Actual time in default short format |
| %NOWxxx% |
Date and time in specified format: yy,
yyyy ... year 2 or 4 digits mm, m ... month with or
without leading zero dd, d ... day with or without
leading zero w ... weekday
(1-7 = Sunday-saturday ww ... week
of the year hh, h ... hour with or without leading
zero nn, n ... minute with or without leading
zero ss, s ... second with or without leading
zero |
| %TIMESTAMP% |
Timestamp in form yyyymmdd.hhnnss |
| %COMPUTER%, %HOST%, %COMPUTERNAME% |
Host/Computer name |
| %PROCESSID% |
Current process id |
| %COUNTER% |
A counter counted up from 0 in hex
since application was started |
| %SHORTID% |
Current process id + counter in hex |
| %DRIVESERIALNO% |
C drives serial number (unique) |
| %GUID% |
GUID without separation characters |
| %GUIDEX% |
GUID with separation characters |
| %UID%, %IDENTIFIER% |
Hostname + timestamp + counter |
| %SHORTUID% |
Hostname + process id + counter |
| %STANDARDID% |
Hostname + timestamp (yymmddhhnnss) +
counter |
| %STDITEMID% |
A new 25 character UID including hostname
for different kinds of items |
| %TEMPDIR% |
Temporary files folder (usually
c:\Temp\) |
| %WINDIR% |
Windows directory (usually c:\WinNT,
c:\Windows etc.) |
| %SYSTEMDIR% |
Windows system directory (usually
c:\WinNT\System32 etc.) |
| %APPDIR% |
Application directory |
| %APPDATADIRCOMMON% |
Common Application data directory, usually
"C:\Documents and Settings\All Users\Application Data" or "C:\Dokumente
und Einstellungen\All Users\Anwendungsdaten" or similar (according to OS
language). |
| %APPDATADIRUSER% |
User specific application data directory,
usually "C:\Documents and Settings\<UserID>\Application Data" or
"C:\Dokumente und Einstellungen\<UserID>\Anwendungsdaten" or similar
(according to OS language). |
| %CRLF% |
Chr(13) & Chr(10) (=\r\n, =carriage
return + line feed) |
| %CR% |
Chr(13) (=\r, =carriage return) |
| %LF% |
Chr(10) (=\n, =line feed) |
| %QM% |
Chr(34) (=", =Quotation mark) |
| %TAB% |
Tab character (ASCII character 9) |
| %TABSn% |
Insert spaces until column n |
| %APPERRORS% |
Number of application errors that occured
meanwhile |
| %APPERRORMSG% |
Application errors message text |
| %APPWARNINGS% |
Number of application warnings that occured
meanwhile |
| %APPWARNINGMSG% |
Application warnings message text |
| %STDPRINTER% |
Name of the printer currently defined as
standard |
| %STDPRINTERNAME% |
Name of the printer currently defined as
standard |
| %STDPRINTERDRIVER% |
Drivername used by the printer
currently defined as standard |
| %STDPRINTERPORT% |
Port of the printer currently defined as
standard |
| %INPUT.s|d% |
Displays a user input box when the variable
is resolved where s is the question or label displayed to the user in
front of the input box and d is a default value. |
| %GETINI.s|k|f% |
Inifile setting (s=section, k=key,
f=filename); If f="" then the applications default inifile is
assumed |
| %GETREG.k|h|s% |
Registry setting (k=key, h=hive,
s=setting); k can be one of HKLM, HKCU, CKCR, HKCC, HKDD, HKPD, HKU. HKLM
is the default in case of an empty or invalid key. |
| %GETSTR.k(s)% |
Get special information string where k is a keyword and s is the
parameter string. The following keywords can be used:
- FILE ... replaced with
content of file s if exists otherwise empty string
- FILEEXT ... file extension
of s (without "."; s interpreted as filename)
- FILENAME ... file name
(without path; s interpreted as filename)
- FNAMEONLY ... file name
without path and extension (s interpreted as filename)
- FULLPATH ... full path (with
drive; s interpreted as filename)
- PATH ... path without drive
(s interpreted as filename)
- CHECKFILE ... 1 if file s
exists, 0 if not
- CHECKDIR ... 1 if folder s
exists, 0 if not
- EXIST ... 1 if folder or
file s exists, 0 if not
- UNCFILENAME ... UNC filename
(with starting "\\"; s interpreted as filename)
- LEGALFILENAME ... converts
illegal filename chars to "_"
- FILELEN ... length of file
in bytes
- EXCLACCESS ... 1 if
exclusive access given, 0 if not
- FREEHDSPACE ... free HD
space of drive s in bytes
- LEN ... Length in bytes of
s
- 4HTML ... HTML encode
s
- FROMHTML ... replace HTML
tags with normal chars
- TRIM ... Remove leading and
trailing spaces
- UCASE ... convert to upper
case
- LCASE ... convert to lower
case
- VAL ... strip trailing non
numerical characters
- INT ... integer value
- HEX ... convert value to hex
value
- BIN2INT ... integer value of
binary coded string ("0101...")
- INT2BIN ... binary coded
string ("0101") of integer value
- BIN2LNG ... same as BIN2INT
for numbers>32767
- LNG2BIN ... same as INT2BIN
with more leading zeros
- DECTO36 ... Number coded in
base36 (0-9, A-Z)
- DECTO62 ... Number coded in
base62 (0-9, A-Z, a-z)
- CHR ... Character with ASCII
value s
- ASC ... ASCII value of s
(only first character)
- ISODATETIME ... Guess date
format and return in ISO (date+time)
- ISODATE ... Guess date
format and return in ISO format (date)
- ISOTIME ... Guess date
format and return in ISO format (time)
- SHORTDATE ... Guess date
format and return default format (date)
- SHORTDATETIME ... Guess date
format and return default (date+time)
- FORMAT ... s must be of the
form "f|a" and result is the string a reformatted using format string f.
The available format characters are identical as used in Visual
Basic.
- LEFT ... s must be of the
form "w|n" and result is the left n characters of the string w
- RIGHT ... s must be of the
form "w|n" and result is the right n characters of the string w
- MID ... s must be of the
form "w|n|m" and result is n characters of the string w beginning with
character n. If m is missing all the rest is returned
- REPLACE ... s must be of the
form "w|a|b" and result is the string w where occurrences of a have been
replaced with b (case insensitive search).
- REPLACEC ... Same as REPLACE
but case sensitive search for a.
- EVAL ... Evaluate vbscript
code where s is code or a vbs filename.
- LSIDE ... s must be of the
form "w|m" and result is the left side before string m
- RSIDE ... s must be of the
form "w|m" and result is the right part after first occurrence of string
m
- LSIDEFIRST ... s must be of the form "w|m" where m can be one or
more strings separated by space (" "). The result is the left side of w
before the first occurrence of any of the characters/strings in m.
- RSIDEFIRST ... s must be of the form "w|m" where m can be one or
more strings separated by space (" "). The result is the right side
of w after the first occurrence of any of the characters/strings
in m.
- LSIDELAST ... s must be of the form "w|m" where m can be one or more
strings separated by space (" "). The result is the left side of w
before the last occurrence of any of the characters/strings
in m.
- RSIDELAST ... s must be of the form "w|m" where m can be one or more
strings separated by space (" "). The result is the right side of
w after the last occurrence of any of the characters/strings
in m.
- PART ... s must be of the
form "w|n|m" and result is the n. substring item where string m is the
separation string between items
- LINK2FILE ... s must be a filename which is converted into a url
link that can be used in HTML files.
- FILENAMEFROMLINK ... s must be an url link used in HTML files which
is converted to a filename (if a file link otherwise original link is
preserved).
- ISERR ... result is 1 if the
string s can be found in application errors descriptions else result is
0
- ISWRN ... result is 1 if the
string s can be found in application warnings descriptions else
result is 0
- NOTISERR ... result
is 0 if the string s can be found in application errors
descriptions else result is 1
- NOTISWRN ... result
is 0 if the string s can be found in application warnings
descriptions else result is 1
|
| %IF c THEN t[ ELSE f]% |
Examines condition c and resolves to
string t if condition is true or to string f if condition is false. For
details see conditions. |
|
|