Using 7-Zip command line it's easy to extract either RAR or ZIP archives. The following code is for extracting ZIP archives:
7z x *.zip -r
How to recode it so that it will work for both ZIP and RAR archives (or other additional archives that I can add based on my preference)?
In a cmd window
In a batch file