private boolean pathIsWindows(String path) {
    if (path != null && path.length() > 1) {
      return (Character.isLetter(path.charAt(0)) && path.charAt(1) == ':')
          || (path.startsWith("//") || path.startsWith("\\\\"));
    }
    return false;
  }
Returns true if the path is on Windows.
geode-core/src/main/java/org/apache/geode/admin/internal/EnabledManagedEntityController.java