Go to file
2023-11-19 17:41:47 +00:00
.github/workflows 2023-11-11 21:28:58 2023-11-11 21:28:58 +00:00
Private 2023-11-19 17:41:47 2023-11-19 17:41:47 +00:00
Public 2023-11-19 17:41:47 2023-11-19 17:41:47 +00:00
CHANGELOG.md 2023-11-11 21:28:58 2023-11-11 21:28:58 +00:00
CONTRIBUTING.md 2023-11-11 22:22:06 2023-11-11 22:22:06 +00:00
LICENSE 2023-11-11 22:22:06 2023-11-11 22:22:06 +00:00
PkgStore.7z.psd1 2023-11-19 17:41:47 2023-11-19 17:41:47 +00:00
PkgStore.7z.psm1 2023-11-19 17:41:47 2023-11-19 17:41:47 +00:00
README.md 2023-11-11 21:28:58 2023-11-11 21:28:58 +00:00

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>'