bit7z icon indicating copy to clipboard operation
bit7z copied to clipboard

[Feature Request]: Creation or extraction archive file in one line

Open davidds1990 opened this issue 5 months ago • 1 comments

Feature description

Hi Can you provide a static function that takes the same arguments as the 7z CLI App? (Similar to the main function in 7z) This function can be very useful (creation or extraction archive file in one line).

CLI:

7z.exe x archive.7z
7z.exe a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=64m -ms=on -mhe=on -p"Hello world!" archive.7z your_dir

Static function (for example):

int ret = bit7z::cli7z("7z.dll", "x archive.7z");
int ret = bit7z::cli7z("7z.dll", "a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=64m -ms=on -mhe=on -p\"Hello world!\" archive.7z your_dir");

Additional context

No response

Code of Conduct

davidds1990 avatar Jan 29 '24 06:01 davidds1990