Special variables

From Ketarin
Revision as of 20:48, 9 October 2010 by Floele (talk | contribs) (date/time)

Main Variables

Additional to the user defined variables, you can use these predefined ones:

Name Description Example Version Required
{file} Location of the downloaded file (only for commands).Remember to enclose this variable in double quotes (”) if the path contains spaces. c:\…\x.exe 1.1
{filesize} Size of the downloaded file in bytes 1482245 1.1
{root} Root of the application startup path c:\ 1.1
{startuppath} Startup path of the current Ketarin instance (without exe file) c:\…\ 1.1
{category} Category of the application Security 1.1
{appname} Name of the application Ketarin 1.1
{appguid} GUID of the application {AC1DB…} 1.1
{url:ext} Extension of the file that is being downloaded exe 1.1
{url:basefile} Base file name of the file that is being downloaded Ketarin-0.9 1.1
{property:X} Property of an application. X is the name of a property (like “Name”). For all property names check the XML that is generated when exporting an application. The element names correspond to the property names. 1.1
{time} or {time-x} or {time+x} UNIX timestamp of the current time, where x represents the time zone offset in hours. 1285772250 1.1

Date/time variables

The following variables can be used either as they are (for example {dd}) or like {f:dd}. The latter one refers to the date of the downloaded file, instead of the system date.

Name Description Example Version Required
{dd} Day 10 1.1
{ddd} Day name Tue 1.1
{dddd} Full day name Tuesday 1.1
{hh} 2 digit hour 10 1.1
{HH} 2 digit hour (24h) 22 1.1
{mm} Minute 00-59 10 1.1
{MM} Month 01-12 10 1.1
{MMM} Month abbreviation Oct 1.1
{MMMM} Month full name December 1.1
{ss} Seconds 00-59 10 1.1
{tt} AM or PM PM 1.1
{yy} Year, 2 digits 06 1.1
{yyyy} Year 2006 1.1
{zz} Timezone offset, 2 digits -05 1.1
{zzz} Timezone offset, 2 digits -05:00 1.1