Add a script for installing windows
This commit is contained in:
parent
6138ad7ffa
commit
ac288a913d
4 changed files with 35 additions and 1 deletions
scripts/Windows/Scripts
|
@ -33,4 +33,16 @@ class Context {
|
|||
-Wait `
|
||||
-NoNewWindow;
|
||||
}
|
||||
|
||||
[void] Restore([string]$archivePath, [string]$destinationPath) {
|
||||
if (-not (Test-Path -PathType Container $destinationPath)) {
|
||||
New-Item -ItemType Directory "$destinationPath";
|
||||
}
|
||||
|
||||
Start-Process -WorkingDirectory "$destinationPath" `
|
||||
-FilePath "7z"
|
||||
-ArgumentList "x" `
|
||||
-Wait `
|
||||
-NoNewWindow;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue