Trying to recursively extract files in ther folders with 7zip

  7zip, batch-file, windows

I have a folder structure with .gz files in folders, that I want to extract in place… I tried this:

FOR /F "usebackq" %a in (`DIR /s /b *.gz`) do 7z.exe x "%a" -y

but it still extracts the files to my current path. Any ideas?

Source: Windows Questions

LEAVE A COMMENT