Hi,
I am trying to write an applicaiton which will run 2 zip files (one after another) with minimum user input.
I can get the file to run but it is then waiting for the user to select "Unzip" to unzip the file. I was wondering if there is a parameter that I can pass to run it without the user selecting "Unzip".
Code I have so far is....
import java.lang.*;
import java.io.*;
public class RunUpdate {
public static void main(String[] args) throws IOException{ {
//Run First Zip File
Runtime r = Runtime.getRuntime();
Process p = null;
try{
String s = "C:\\Test\\zipFile.exe";
p = r.exec(s);
}
catch(Exception e){
System.out.println("error==="+e.getMessage());
e.printStackTrace();
}
//Then run Second Zip file etc
}
}
}