Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pysj committed Oct 14, 2023
1 parent 2e340b8 commit 1c64187
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# dotnet clean
# dotnet restore
# dotnet build
# dotnet test

#Add-Type -Path "C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll"
[System.Reflection.Assembly]::LoadFrom("C:\Users\lasse\psh\wrkspc\SevenZipSharp\Stage\Debug\net472\SevenZipSharp.dll")

$compressor = New-Object SevenZip.SevenZipCompressor
$compressor.ArchiveFormat = "wim"
$compressor.CompressionMode = "Create"
$compressor.CompressionLevel = "Ultra"

# Invoke
$compressor.CompressDirectory("C:\Users\lasse\psh\wrkspc\testing", "C:\Users\lasse\psh\wrkspc\testing.wim")

# Extract
$extractor = New-Object SevenZip.SevenZipExtractor("C:\Users\lasse\psh\wrkspc\testing.wim")
# invoke
$extractor.ExtractArchive("C:\Users\lasse\psh\wrkspc\extracted")

0 comments on commit 1c64187

Please sign in to comment.