code: private static boolean isScript(String base, ZipFile zip) {
          Enumeration<? extends ZipEntry> files = zip.entries();
          while (files.hasMoreElements()) {
              ZipEntry f = files.nextElement();
              if ((f.getName()).equals(base + ".bat") || (f.getName()).contains("/" + base + ".bat")) {
                  return true;
              }
          }
          return false;
      }
docs: Look for matching *.bat files in zip file. If there is then assume it is a script
  
  @return true if matching *.bat file is found, false otherwise.