PowerShell and 7-zip >> unzip

For now only Quintessence

$MainFolder = 'C:\Temp'
$7zipExecutable = "$MainFolder\7-Zip\7z.exe"
$ArchiveFilePath = "$MainFolder\instalator.zip"
$DestinationDirPath = $MainFolder

Get-ChildItem -Path "$MainFolder\*.zip" | ForEach-Object -Process { & $7zipExecutable x $_ `-o$destinationDirectoryPath `-aoa `-r }

x        – This command preserves the full paths.
-aoa  – This switch overwrites all destination files.
-r       – Enable recurse subdirectories.

` – to ensure that PowerShell wouldn’t like to interpret.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s