I am trying to write a batch script to extract files out of an existing ZIP file, into another folder on my desktop and to have the system not prompt me as to whether I want to overwrite the existing files or not. The script works with just -o
, but once I add -aoa, I get an error:
"C:\Program Files\7-zip\7z.exe" e file1.zip "-aoaC:\Documents and Settings\All Users\Desktop\all_backup_files"
Answer
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.
Comments
Post a Comment