public String formatDeleteShareCmd(String dataMover,String fileShare,String netBios){
  StringBuilder cmd=new StringBuilder();
  cmd.append(dataMover);
  cmd.append(" -unexport -name ");
  cmd.append(fileShare);
  if (netBios != null && netBios.length() > 0) {
    cmd.append(" -option netbios=");
    cmd.append("\"" + netBios + "\" ");
  }
  return cmd.toString();
}

public String formatDeleteShareCmd ( String dataMover , String fileShare , String netBios ) { StringBuilder cmd = new StringBuilder ( ) ; cmd . append ( dataMover ) ; cmd . append ( " -unexport -name " ) ; cmd . append ( fileShare ) ; if ( netBios != null && netBios . length ( ) > 0 ) { cmd . append ( " -option netbios=" ) ; cmd . append ( "\"" + netBios + "\" " ) ; } return cmd . toString ( ) ; }
create the command string for removing a cifs file share .
