// 解压 String pw = "123456"; String cmd = "unzip -P " + pw + " /root/lianliandownload/" + fileName + " -d /root/lianliandownload "; try { Runtime.getRuntime().exec(cmd); } catch (Exception ex) { ex.printStackTrace(); }
// 解压 String pw = "123456"; String cmd = "unzip -P " + pw + " /root/lianliandownload/" + fileName + " -d /root/lianliandownload "; try { Runtime.getRuntime().exec(cmd); } catch (Exception ex) { ex.printStackTrace(); }
转载于:https://www.cnblogs.com/toSeeMyDream/p/8867265.html