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

On a Windows XP machine, I have a zip file located on "c:\temp\mydata\". Using 7-Zip application, I would like to write a batch script and extract the file silently to the following location "c:\printers\okidata". How should I write the syntax?

share|improve this question

You can use 7-Zip from the command line, as you suspect by using the following command:

7z x "c:\temp\mydata\" -o"C:\printers\okidata"

Where: x = extract (keeping paths), and -o = output directory.

share|improve this answer

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.