public boolean exists(){

        String path = Directory.toString();
        
      //Special case for a directory whose path represents a server name (e.g. "\\192.168.0.1")
        if (isWindows && path.startsWith("\\\\")){
            if (path.endsWith(PathSeparator)) path = path.substring(0, path.length()-1);
            if (!path.substring(2).contains(PathSeparator)){
                boolean doNetUse = false;
                if (File.loadDLL()){
                    try{
                        File.GetSharedDrives(path.substring(2));
                        return true;
                    }
                    catch(Exception e){
                        if (e.getMessage().trim().equals("53")){
                            return false;
                        }
                        else{
                            doNetUse = true;
                        }
                    }
                }
                else{
                    doNetUse = true;
                }
                
                if (doNetUse){
                    javaxt.io.Shell cmd = new javaxt.io.Shell("net view " + path);
                    cmd.run();
                    java.util.List errors = cmd.getErrors();
                    errors.remove(null);
                    if (errors.isEmpty()){
                        return true;
                    }
                    else{
                        return false;
                    }
                }
                
            }
        }

        return Directory.exists();
    }