docs: private Properties getEnvVars()
      {
          Process p = null;
          Properties envVars = new Properties();
  
          try
          {
              Runtime r = Runtime.getRuntime();
              String OS = System.getProperty("os.name").toLowerCase();
  
              if (OS.indexOf("windows 9") > -1)
              {
                  p = r.exec("command.com /c set");
              }
              else if ((OS.indexOf("nt") > -1) ||
                       (OS.indexOf("windows 2000") > -1) ||
                       (OS.indexOf("windows xp") > -1))
              {
                  p = r.exec("cmd.exe /c set");
              }
              else
              {
                  // our last hope, we assume Unix (thanks to H. Ware for the fix)
                  p = r.exec("env");
              }
              BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
              String line;
              while((line = br.readLine()) != null)
              {
                  int idx = line.indexOf('=');
                  String key = line.substring(0, idx);
                  String value = line.substring(idx + 1);
                  envVars.setProperty(key, value);
              }
          }
          catch (Exception ExIgnore)
          {
          }
          return envVars;
      }