MS importund Replace Folder

This commit is contained in:
2020-04-20 15:19:41 +02:00
parent fbacfdaaad
commit f4a835b682
31 changed files with 11 additions and 5 deletions

Binary file not shown.

View File

@@ -15,4 +15,5 @@ Module Runtime
Public oWMObjecttype As String
Public oIndexArr As String()
Public WMIndices As List(Of String)
Public OExtension As String
End Module

View File

@@ -63,9 +63,10 @@ DigitalData.Modules.Config
<param name="LogConfig">LogConfig instance</param>
<param name="UserConfigPath">The path to check for a user config file, eg. AppData (Usually Application.UserAppDataPath or Application.LocalUserAppDataPath)</param>
<param name="ComputerConfigPath">The path to check for a computer config file, eg. ProgramData (Usually Application.CommonAppDataPath)</param>
<param name="ApplicationStartupPath">The path to check for a third config file. This is useful when running the Application in an environment where AppData/ProgramData directories are not available</param>
<param name="ForceUserConfig">Override values from ComputerConfig with UserConfig</param>
</member>
<member name="M:DigitalData.Modules.Config.ConfigManager`1.#ctor(DigitalData.Modules.Logging.LogConfig,System.String,System.String)">
<member name="M:DigitalData.Modules.Config.ConfigManager`1.#ctor(DigitalData.Modules.Logging.LogConfig,System.String)">
<summary>
Creates a new ConfigManager with a single (user)config path
</summary>

Binary file not shown.

Binary file not shown.

View File

@@ -122,6 +122,8 @@ Public Class frmMain
ElseIf oArg.StartsWith("-Target@") Then
oTargetPath = oArg.Replace("-Target@", "")
Dim oWMFolder = System.IO.Path.GetDirectoryName(oTargetPath)
Dim oWindowsPath = oTargetPath
OExtension = IO.Path.GetExtension(oWindowsPath)
Dim oNormalizePath = WINDREAM.GetNormalizedPath(oTargetPath)
If WINDREAM.TestFileExists(oTargetPath) = False Then
LOGGER.Info($"WMFile [{oTargetPath}] not existing!")
@@ -266,7 +268,7 @@ Public Class frmMain
Public Function StreamIndexFile()
Try
'Checks and creates the path if necessary
WINDREAM.NewFolder(oTargetPath)
WINDREAM.NewFolder(oTargetPath, oExtension)
Dim oResult As Boolean = False
If oMode = "IMPV" Then
oResult = WINDREAM.NewFileStream(oSourceFile, oTargetPath)

Binary file not shown.

Binary file not shown.

View File