pwsh-7z/README.md
2023-11-11 21:28:58 +00:00

781 B

PowerShell 7-ZIP Module

PowerShell module for working with 7-ZIP.

Install

${MOD} = "7z"; ${PFX} = "PkgStore"; ${DIR} = "$( (${env:PSModulePath} -split ';')[0] )"; Invoke-WebRequest "https://github.com/pkgstore/pwsh-${MOD}/archive/refs/heads/main.zip" -OutFile "${DIR}\${MOD}.zip"; Expand-Archive -Path "${DIR}\${MOD}.zip" -DestinationPath "${DIR}"; if ( Test-Path -Path "${DIR}\${PFX}.${MOD}" ) { Remove-Item -Path "${DIR}\${PFX}.${MOD}" -Recurse -Force }; Rename-Item -Path "${DIR}\pwsh-${MOD}-main" -NewName "${DIR}\${PFX}.${MOD}"; Remove-Item -Path "${DIR}\${MOD}.zip";

Syntax

For syntax information, enter module info command and get help command.

Get-Command -Module 'PkgStore.7z'
Get-Help '<COMMAND-NAME>'