Minor restore fixes
This commit is contained in:
@@ -41,7 +41,11 @@
|
|||||||
|
|
||||||
Property FileName As String
|
Property FileName As String
|
||||||
Get
|
Get
|
||||||
Return sFileName
|
If mgrCommon.IsUnix Then
|
||||||
|
Return sFileName.Replace("\", "/")
|
||||||
|
Else
|
||||||
|
Return sFileName.Replace("/", "\")
|
||||||
|
End If
|
||||||
End Get
|
End Get
|
||||||
Set(value As String)
|
Set(value As String)
|
||||||
sFileName = value
|
sFileName = value
|
||||||
|
|||||||
@@ -232,7 +232,11 @@ Public Class mgrRestore
|
|||||||
If bDoRestore Then
|
If bDoRestore Then
|
||||||
Try
|
Try
|
||||||
If File.Exists(sBackupFile) Then
|
If File.Exists(sBackupFile) Then
|
||||||
|
If mgrCommon.IsUnix Then
|
||||||
prs7z.StartInfo.Arguments = "x """ & sBackupFile & """ -o""" & sExtractPath & Path.DirectorySeparatorChar & """ -aoa -r"
|
prs7z.StartInfo.Arguments = "x """ & sBackupFile & """ -o""" & sExtractPath & Path.DirectorySeparatorChar & """ -aoa -r"
|
||||||
|
Else
|
||||||
|
prs7z.StartInfo.Arguments = "x -bb1 -bt """ & sBackupFile & """ -o""" & sExtractPath & Path.DirectorySeparatorChar & """ -aoa -r"
|
||||||
|
End If
|
||||||
prs7z.StartInfo.FileName = mgrPath.Utility7zLocation
|
prs7z.StartInfo.FileName = mgrPath.Utility7zLocation
|
||||||
prs7z.StartInfo.UseShellExecute = False
|
prs7z.StartInfo.UseShellExecute = False
|
||||||
prs7z.StartInfo.RedirectStandardOutput = True
|
prs7z.StartInfo.RedirectStandardOutput = True
|
||||||
|
|||||||
Reference in New Issue
Block a user