11 lines
276 B
PowerShell
11 lines
276 B
PowerShell
# Usage: .\unpack.ps1 filename.zip
|
|
# Usage: .\unpack.ps1 filename.zip c:\
|
|
$FILENAME=$args[0]
|
|
|
|
if ($args.count -gt 1) {
|
|
$DESTPATH=$args[1]
|
|
Expand-Archive -Force -Path "${FILENAME}" -DestinationPath "${DESTPATH}"
|
|
} else {
|
|
Expand-Archive -Force -Path "${FILENAME}"
|
|
}
|