If I try to use a wildcard in the filename parameter when creating a -tbzip2 archive, it fails. It works when specifying a filename without a wildcard.
System ERROR:
The parameter is incorrect.8:51:45.65 C:\src\t\7zz
C:>7z a t3.bz2 ..\y.ps1 -tbzip2
7-Zip 18.01 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-01-28
Scanning the drive:
1 file, 51 bytes (1 KiB)
Creating archive: t3.bz2
Add new data to archive: 1 file, 51 bytes (1 KiB)
Files read from disk: 1
Archive size: 87 bytes (1 KiB)
Everything is Ok
8:52:11.47 C:\src\t\7zz
C:>del t3.bz2
8:52:25.19 C:\src\t\7zz
C:>7z a t3.bz2 ..*.ps1 -tbzip2
7-Zip 18.01 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-01-28
Scanning the drive:
115 files, 92962 bytes (91 KiB)
Creating archive: t3.bz2
Add new data to archive: 115 files, 92962 bytes (91 KiB)
System ERROR:
The parameter is incorrect.
bz2 supports only one file per archive.
Thanks, Igor. My apologies for not knowing.