Internal variables

Gizmo has built-in variables that you can use in settings, scripts and tasks.

List of variables:

Variable

Value

%HOST_NUMBER%

Device number

%HOST_NAME%

Device name in Gizmo Manager

%CUR_HOST_GROUP_NAME%

Host group name

%CUR_HOST_GROUP_ID%

Host group ID

%CUR_USER%

Current user's username

%CUR_USER_ID%

Current user's ID

%CUR_USER_STATE%

Current user state

%CUR_USER_TYPE%

User account type

%CUR_USER_GROUP%

Current user group

%CUR_APP_PROFILE%

Current app group

%CUR_SEC_PROFILE%

Current security profile

%USERMINUTESLEFT%

Number of minutes available to the user

%CUR_WORKING_DIRECTORY%

Current working directory of Gizmo Client

%ENTRYTITLE%

App name

%ENTRYPUBLISHER%

App publisher name

%ENTRYDEVELOPER%

App developer name

%CUR_EXE_PATH%

Current app launch path

%CUR_EXE_ARGUMENTS%

Current app launch arguments

%CUR_EXE_WORKING_DIRECTORY%

Current working directory of the app

%ENTRYSOURCE%

Source directory of the app (set in the Deployment section)

%ENTRYDESTINATION%

Destination directory of the app (set in the Deployment section)

%LICENSE%

License key used for the app (only for use in the Licenses subsection of apps)

%LICENSEKEYUSER%

Name of the user who uses the license key

%LICENSEKEYUSERID%

ID of the user who uses the license key

Windows environment variables

Besides the built-in Gizmo variables, you can use Windows environment variables in app paths, tasks and scripts. This helps when a path differs from PC to PC — for example, when it contains the Windows user name:

  • %LocalAppData% — C:\Users\<user name>\AppData\Local;

  • %AppData% — C:\Users\<user name>\AppData\Roaming;

  • %UserProfile% — C:\Users\<user name>;

  • %ProgramData% — C:\ProgramData;

  • %windir% — C:\Windows.

For example, Discord installs into the Windows user profile, so its path is different on every PC. Instead of the full path, enter %LocalAppData%\Discord\Update.exe — Windows fills in the right folder by itself. For more examples, see the reference Paths and launch arguments for launchers and applications.