Shell "7z.exe a myzipfile.zip -pMyPassword -mx9 -aoa -r *.xls", 0
' -r recurse to subfolders
' -p password protect
' -mx9 compression level 9
' -aoa overwrite existing files without prompt
This was used with 7-zip version 9.20 from 2010 so who knows if it works now. It simply creates a password protected archive containing, in my case, *.xls spreadsheet files in the folder. Obviously I have changed the archive name and password in the above example. :-)