Skip to content

Instantly share code, notes, and snippets.

View brettinternet's full-sized avatar

Brett brettinternet

View GitHub Profile
@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;