final path = destination path
String cmd = "mysqldump -u"+databaseUserName+" "+"-p"+databasePassword +" "+databaseName+" "+"-r"+finalPath+".sql"; Process run = Runtime.getRuntime().exec(cmd); int complete = run.waitFor(); if (complete == 0)//return zero if sucess full { //if process is sucess full statuse_lbl.setText("Opration Successfull...!"); } else { String completeTime =dateFormat.format(calender.getTime()); //if process is not sucessfull do something }
C:\backup or C:\someFolder or E:\someFolder
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)