Skip to content

Instantly share code, notes, and snippets.

@ztirom

ztirom/hostname Secret

Created January 15, 2017 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ztirom/fca96812e6551814b50aca0261f55657 to your computer and use it in GitHub Desktop.
Save ztirom/fca96812e6551814b50aca0261f55657 to your computer and use it in GitHub Desktop.
Get client hostname with xpp
static void GetClientNames(Args _args)
{
#define.CLIENTNAME("CLIENTNAME")
// TS Host
info(xGlobal::computerName());
// Client
info(System.Environment::GetEnvironmentVariable(#CLIENTNAME));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment