Skip to content

Instantly share code, notes, and snippets.

@brettinternet
brettinternet / ExtractISO.ps1
Last active February 16, 2021 19:21
PowerShell script to extract all ISO images in subfolders with 7zip - see improved batch script below
Get-ChildItem $folderPath -recurse | %{
if($_.Name -match "^*.`.iso$")
{
$parent="$(Split-Path $_.FullName -Parent)";
write-host "Extracting $($_.FullName) to $parent"
$arguments=@("x", "`"$($_.FullName)`"", "-o`"$($parent)`"");
$ex = start-process -FilePath "`"C:\Program Files\7-Zip\7z.exe`"" -ArgumentList $arguments -wait -PassThru;
@fuzzmz
fuzzmz / extract.bat
Created June 7, 2012 21:52
Recursively extract archives in nested folders with 7-zip
FOR /D /r %%F in ("*") DO (
pushd %CD%
cd %%F
FOR %%X in (*.rar *.zip) DO (
"C:\Program Files\7-zip\7z.exe" x %%X
)
popd
)