Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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"

share|improve this question
add comment

1 Answer

up vote 3 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 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

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
add comment

Your Answer

 
discard

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.