Compressing & Decompressing 7z file in java

后端 未结 3 1198
清酒与你
清酒与你 2021-01-01 16:12

I want to compress a file into zip, rar and 7z format using java code. Also I want to decompress these files at a specified location. Can anyone please tell me how to compr

3条回答
  •  一生所求
    2021-01-01 16:35

    You can also write a batch script or just inline command execution which you call from java to extract and compress. Note that this option is for windows platforms only and required a few admin skills. 7zip provides an exe file to facilitate this. I have used this for one of my utility and worked perfectly. If you are interested I can send u the code.

提交回复
热议问题