Fight With Me!!!

导航

unzip解压带密码的压缩包

  

// 解压
        String pw = "123456";
        String cmd = "unzip -P " + pw + " /root/lianliandownload/" + fileName + " -d /root/lianliandownload ";
        try {
            Runtime.getRuntime().exec(cmd);
        } catch (Exception ex) {
            ex.printStackTrace();
        }

 

posted on 2018-04-17 15:58  nickTimer  阅读(7197)  评论(0编辑  收藏  举报