Extract and overwrite existing files
Solution 1:
The 7-Zip command line options you will need are x
, -o
and -y
:
"C:\Program Files\7-zip\7z.exe" x file1.zip -o "C:\Documents and Settings\All Users\Desktop\all_backup_files" -y
If you type 7z --help
you will get a list of valid parameters.
Solution 2:
"C:\Program Files\7-zip\7z.exe" e file1.zip " -aoa -o "C:\Documents and Settings\All Users\Desktop\all_backup_files"
this will solve the problem refer https://sevenzip.osdn.jp/chm/cmdline/switches/overwrite.htm