Jelajahi Sumber

增加rar加压缩工具

dengsixing 2 tahun lalu
induk
melakukan
009739d884

+ 7 - 0
4dkankan-utils-model/src/main/java/com/fdkankan/model/utils/CreateObjUtil.java

@@ -59,6 +59,13 @@ public class CreateObjUtil {
 		log.info("解压rar完毕:" + command);
 	}
 
+	public static void unRarWithPath(String rarPath,String dataPath) throws Exception{
+		log.info("解压rar开始");
+		String command = "unrar x " + rarPath + " " + dataPath;
+		callshell(command);
+		log.info("解压rar完毕:" + command);
+	}
+
 	public static void unZip(String zipPath,String dataPath) throws Exception{
 		log.info("解压zip开始");
 		String command = "unzip -O GBK/GB18030CP936 " + zipPath + " -d " + dataPath;