ulvis.paste.net

Paste Search Dynamic
Recent pastes
uninstalledApp
  1. public void uninstalledApp(string uninstalledString, string batFileName) throws InterruptedException, IOException {
  2.   string home = System.getProperty("user.dir");
  3.   File dir = new File(home + File.separatorChar + "Utilities");
  4.   string strArr[]=uninstalledString.split(" ");
  5.   // strArr[0] : MSiExec.exe
  6.   // strArr[1] : /X{A8DC81F2-D365–4248–892A-FA3B5951F731}
  7.   List cmdAndArgs = Arrays.asList("cmd", "/c", batFileName , home ,strArr[0],strArr[1]);
  8.   ProcessBuilder pb = new ProcessBuilder(cmdAndArgs);
  9.   pb.directory(dir);
  10.   Process p = pb.start();
  11.   p.waitFor();
  12. }
Parsed in 0.004 seconds