diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 6f7252cc..12a64aa0 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -1,7 +1,15 @@ class Context { + [string]$RootDir; [string]$BackupName; [string] BackupRoot() { - return Join-Path $PSScriptRoot ".." ".." ".." "backup" $this.BackupName; + if (-not $this.RootDir) + { + return Join-Path $PSScriptRoot ".." ".." ".." "backup" $this.BackupName; + } + else + { + return $this.RootDir; + } } [string] ArchivePath($name) {