java调用dos解压rar文件命令不好使啊
Process process = Runtime.getRuntime().exec("cmd /c cd c:\\Program Files\\WinRAR\\ & rar e d:\\test\\ERBB4212578332G-T.rar d:\\test\\ERBB4212578332G-T\\"); 这样不对,但直接在命令行能用,求解谢谢!
------解决方案--------------------"cmd /c
start cd c:\\Program Files\\WinRAR\\ & rar e d:\\test\\ERBB4212578332G-T.rar d:\\test\\ERBB4212578332G-T\\")
加上start试下