How to extract multiple rar files

broken image
broken image

If there is an error on extracting an archive, the archive file name should be written to an error log file and extraction process should continue with the next archive file(s). Furthermore, I want to delete the original compressed file only if there is no error during decompression. I want to extract ZIP and RAR archives existing in each folder to the respective folder at the command line.