Windows 10 batch unzip multiple files with filename the same as zip directory name

I have about 60 files to unzip as you can see below:

enter image description here

know the 7zip option, which can unzip all of them, but the problem is, that the file inside doesn't match the zip directory name, which would be highly desirable here.

I found some solutions for the batch file here:

Extract all Zip's in a directory (incl. subfolders) with a .bat file or dos command

and prepared some batch code for this which looks like this:

 @echo off setlocal cd /d %~dp0 for %%a in (*.zip) do ( Call :UnZipFile "C:\my\Desktop current\Occ KMZ\bat\Aldebaran" "C:\my\Desktop current\Occ KMZ\bat\Aldebaran" ) exit /b

but it doesn't work at all. I can neither unzip it nor get files.

The 7zip software has a few options, which potentially could be good

enter image description here

I found also some options here:

How can I unzip multiple "7z" files all in one go, and have the contents go into a respective folder with the same name as the zip file?

but they didn't work either.

How can I solve this problem?

but I don't know how to use the 7Zip command line in order to get the unzipped file with the same name as the zip directory.

What should I do to automatize this section?

8 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like