- %COMPANY%: User's company identifier.
- %AliasServerCompany=AliasCompany%: Company Alias
value (where AliasCompany refers to a
Company Alias)
- %T_COMPANIES.property%: a user's company property:
a field from the company table or one of the tables associated with
companies.
- User
- %USER%: user identifier (unique in a company).
- %AliasServerUser=AliasUser%: User Alias value
(where AliasUser refers to a Server Alias)
This is used for Media4Display metadata.
- %AliasStation=AliasUser%: User Alias value (where
AliasUser refers to a Station Alias)
- %T_USERS.property%: a user property: a field from the
user table or one of the tables associated with users.
- %StationComputerName%: short name of the remote
machine.
- %StationFullComputerName%: full DNS name of the
remote machine.
- %StationLoginName%: name of the authenticated
user.
- %SDCardName%: name of the SD card. If the station
has several SD cards, you can create an empty mediacontact.sdcard file on the root of the card of which
you want to take account (Windows Mobile only).
- %ExternalSDCardName%: name of the external SD card
(Android only).
- %StationMobileNetworkCode%: code of the mobile
network to which the station is connected (Windows Mobile only).
- %StationMobileCountryCode%: country code of the
mobile network to which the station is connected (Windows Mobile
only).
- %IPV4%: LAN IP address of the device (Android
only)
Date
%LASTSQLEXECUTE% is only used in SQL export for
import tasks. It designates the date on which, for this task, for a user, for a
target table, a SELECT command has been executed. If the source table contains a
last update field, it allows the following type of SELECT command:
SELECT * FROM Clients WHERE VendorCode = %AliasServerUser=Salesperson% AND UpdateDate > #%LASTSQLEXECUTE%#
Standard folder variables
Folders belonging to each user (station variables, or if server variables,
their names contain the %COMPANY%\%USER% variables).
They designate the standard exchange folders used in the Standard transfer task or standard station
folders:
Server standard exchange folders
- Departure: %ServerXOut%
- Arrival: %ServerXIn%
- Station standard exchange folders
- Departure: %StationXOut%
- Arrival: %StationXIn%
- Other standard station folders
- %StationBackup%: Standard station backup
folder
- %StationSoftwareIn%: Standard station software
distribution arrival folder
Use of these variables, as for variables associated with the user, is
suggested by the Administration Console at various stages in the definition of
tasks. It is not necessary that the process is associated with a population for
them to be used. These are:
Non-specialized variables:
- %DATE%: Execution date in the form YYYYMMDD (year
in 4 figures, month in 2 figures and day in 2 figures)
- %DATEYYYY%: Execution year in 4 figures
- %DATEYY%: Execution year in 2 figures
- %DATEMM%: Execution month in 2 figures
- %DATEDD%: Execution day of month in 2 figures
- %WEEKDAY%: Number of day in week, 1 to 7 (Sunday
is the first day)
- %YEARDAY%: Number of day in year
- %HOUR%: Time of execution in the form HHMMSS
(hours, minutes and seconds in 2 figures respectively)
- %MILLISECOND%: Milliseconds of the current hour in
3 figures
- %DATE(format)[+n|-n]%: Date formatted according to specifications (see
below)
- +n: add n days to the current date
- -n: subtract n days to the current date
- Example: %DATE(dd/MM/yyyy
HH:mm:ss)-1%
- Folders that are not individualized (their names do not contain a user or
company variable):
- %ServerBackup%: Standard server backup folder
- %ServerSoftwareOut%: Standard server departure
software distribution folder
- %InstallFolder% : Installation folder for
MediaContact (C:\Program
files...\bin\)
d
|
Day as 1 digit, if <=9
|
1
|
dd
|
Day as 2 digits
|
01
|
ddd
|
Day (short)
|
Sat
|
dddd
|
Day (long)
|
Saturday
|
M
|
Month as 1 digit, if <=9
|
2
|
MM
|
Month as 2 digits
|
02
|
MMM
|
Month (short)
|
Feb
|
MMMM
|
Month (long)
|
February
|
yy
|
Year as 2 digits
|
03
|
yyyy
|
Year as 4 digits
|
2003
|
h
|
Hours of 12-hour clock as 1 digit, if <= 9
|
4
|
hh
|
Hours of 12-hour clock as 2 digits
|
04
|
H
|
Hours of 24-hour clock as 1 digit, if <= 9
|
4
|
HH
|
Hours of 24-hour clock as 2 digits
|
04
|
m
|
Minutes as 1 digit, if <=9
|
5
|
mm
|
Minutes as 2 digits
|
05
|
s
|
Seconds as 1 digit, if <= 9
|
6
|
ss
|
Seconds as 2 digits
|
06
|
tt
|
AM/PM as 2 characters
|
AM
|
The format may also be a key word from those defined below. In this case, the
resulting value depends on the language selected from the regional and
linguistic options.
|
SHORTDATE
|
Short date using the local format
|
01/02/2003
|
LONGDATE
|
Long date using the local format
|
Saturday, February 1st, 2003
|
SHORTTIME
|
Short time using the local format (without seconds)
|
16:05 or 4:05 PM
|
LONGTIME
|
Time using the local format
|
16:05:06 or 4:05:06 PM
|
An environment variable used in MediaContact is written as:
%$variable% to be interpreted by the scheduler at the execution location.
Example: %$TEMP%