Something like

for file in `ls -p1`;
do
if [ -d "$file" ]
command for 7zip with $file as the parameter
endif
done