Copy a rar file from a usb, then unrar it into C:\ drive
import os def copy_rar_file(source_path, destination_path): os.system('copy {} {}'.format(source_path, destination_path)) os.system('unrar e {}'.format(destination_path)) copy_rar_file('E:\\archive.rar', 'C:\\archive.rar')