Execute an exe file
Could anyone please help me to execute an exe file "fi2t1" and store its output files into the destination "C:\\Temp\\sample".
Currently, my following code is not outputting any files.
private static void compilingFiles() throws IOException
{
String SecondParam = "C:\\Temp\\sample";
Process procforopenreport2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 "+new File(SecondParam));
}
[449 byte] By [
sony_tj] at [2007-11-11 10:05:04]

# 1 Re: Execute an exe file
Could anyone please help me to execute an exe file "fi2t1". It needs to pick up necessary files from source and place the output files to the desination
source =>String FirstParam1 = "C:/Temp/sample";
destination=>String SecondParam = "C:/Temp/sample";
My code is:
private static void compilingFiles() throws IOException
{
String FirstParam1 = "C:/Temp/sample";
String SecondParam = "C:/Temp/sample";
Process procforopenreport2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 "+ FirstParam1, (String[])null, new File(SecondParam));
}