import java.io.*;
import java.sql.*;
import java.util.StringTokenizer;
import org.apache.commons.cli.*;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.log4j.Logger;
public class Process1 {
public static void Process1(String args[])
{
Runtime runtime = Runtime.getRuntime();
try {
Process p1 = runtime.exec("cmd /c start C:\\db2sqlloader\\run_dir.bat");
InputStream is = p1.getInputStream();
int i = 0;
while ((i = is.read()) != -1) {
System.out.print((char) i);
}
} catch (IOException ioException) {
System.out.println(ioException.getMessage());
}
}
}
No comments:
Post a Comment