Obtaining the Servers Windows Name
This is a useful trick to know
inet = CreateObject("java", "java.net.InetAddress");
inet = inet.getLocalHost();
inet = inet.getHostName();
writeOutput(inet);
I use it for detecting the environment code is on i.e. the development, staging and live servers.
<< Home