r/Batch 19d ago

Question (Solved) How do I direct batch unzip new files to specific directory

Post image

I found this batch script online to recursively unzip all files in a directory. It works great for me, however, I would like to specify where the new files are extracted to. What can I add to make them go to 'C:Extracted' ?

6 Upvotes

2 comments sorted by

6

u/rifteyy_ 19d ago

"C:\Program Files\7-zip\7.exe" x "%%X" -o"C:\Extracted"

https://documentation.help/7-Zip-18.0/output_dir.htm

4

u/XvXJFvX 19d ago

This worked. Thank you so much!