Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 "-aoaC:\Documents and Settings\All Users\Desktop\all_backup_files"
share|improve this question
up vote 8 down vote accepted

The 7-Zip command line options you will need are x, -o and -y:

"C:\Program Files\7-zip\7z.exe" x -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.

share|improve this answer
Thanks very much for this Sean. For me it was where to put the switch. I fixed the batch programs and they all work great now. – Larry Oct 3 '12 at 19:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.