I want one of these commands to be executed. I can't do it in java. Commands are:
type table1.sql, table2.sql, table3.sql > sBackup.sql
type *.sql > allinone.sql --[Make a backup for all file in the folder]
copy *.sql merged.sql
I tried this:
String command = "type " + "*.sql" + " --result-file=" + "c:\\sBackup.sql";
Runtime.getRuntime().exec(command);
Your valuable insight is highly appreciated. Thank you.