I want to compress some files with AHK and found 7-zip (it works pretty well)
1) Progress bar
Normally I run 7z.exe from command line with this parameters (and it works in some way)
Code: Select all
RunArgs := "a -w" WorkPath " -t7z -stl -p" PassWd " -mhe=on -sccUTF-8 -bb1 -bse2 -bsp1 > " ResInfoFile
RunWait %comspec% /c ""%exeFile%" %RunArgs% "%ToZip%" "%SourceFile%"",, hide UseErrorLevel, ZipPID
Would I like to see that something happens (some progress bar)
I can instead use 7zG.exe and this program gives me running information as progress bar and status information about files and compression size and so on. (nice!)
Summary - Progressbar
My wish is to get a progress bar (similar to 7zG.exe) when zipping many / large files. (An analysis can be done in AHK if the progress bar should be displayed or not), but at the same time create a log file.
Is it possible with AHK?
2) Logfile / Run information
( I don't understand how 7zip logfiles work )
As result I got some information from 7-zip (like that)
7z.exe gives some kind of result (as above)
7zG.exe does not create a log file at all (with the same settings as for 7z.exe)
If I understand correctly, 7z.exe can generate three files with results
- bso - standard output messages
- bse - error messages
- bsp - progress information
I don't know the meaning of
- redirect to stdout stream
- redirect to stderr stream
Summary - log file
Right now I don't know if it is an AHK problem or something I dont understand with 7zip.
My wish is primarily to get an error message if something unexpected happens (what happened - missing files, locked files or ...)
Also want to get some information.: How many files have been compressed, how long did it take, etc. - and maybe I want to know which files have been compressed and how much they have been compressed. But preferably in any format that has been easier to handle with e.g. LO Calc or Excel or ...