MS importund Replace Folder
This commit is contained in:
parent
fbacfdaaad
commit
f4a835b682
Binary file not shown.
@ -131,6 +131,8 @@ Module Module1
|
|||||||
ElseIf oArg.StartsWith("-Target@") Then
|
ElseIf oArg.StartsWith("-Target@") Then
|
||||||
oTargetPath = oArg.Replace("-Target@", "")
|
oTargetPath = oArg.Replace("-Target@", "")
|
||||||
Dim oWMFolder = System.IO.Path.GetDirectoryName(oTargetPath)
|
Dim oWMFolder = System.IO.Path.GetDirectoryName(oTargetPath)
|
||||||
|
Dim oWindowsPath = oTargetPath
|
||||||
|
oExtension = Path.GetExtension(oWindowsPath)
|
||||||
Dim oNormalizePath = WINDREAM.GetNormalizedPath(oTargetPath)
|
Dim oNormalizePath = WINDREAM.GetNormalizedPath(oTargetPath)
|
||||||
If WINDREAM.TestFileExists(oTargetPath) = False Then
|
If WINDREAM.TestFileExists(oTargetPath) = False Then
|
||||||
LOGGER.Info($"WMFile [{oTargetPath}] not existing!")
|
LOGGER.Info($"WMFile [{oTargetPath}] not existing!")
|
||||||
@ -143,7 +145,7 @@ Module Module1
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
'Checks and creates the path if necessary
|
'Checks and creates the path if necessary
|
||||||
WINDREAM.NewFolder(oTargetPath)
|
WINDREAM.NewFolder(oTargetPath, oExtension)
|
||||||
|
|
||||||
ElseIf oArg.StartsWith("-WMOT@") Then
|
ElseIf oArg.StartsWith("-WMOT@") Then
|
||||||
oWMObjecttype = oArg.Replace("-WMOT@", "")
|
oWMObjecttype = oArg.Replace("-WMOT@", "")
|
||||||
|
|||||||
@ -15,4 +15,5 @@ Module Runtime
|
|||||||
Public oWMObjecttype As String
|
Public oWMObjecttype As String
|
||||||
Public oIndexArr As String()
|
Public oIndexArr As String()
|
||||||
Public WMIndices As List(Of String)
|
Public WMIndices As List(Of String)
|
||||||
|
Public oExtension As String
|
||||||
End Module
|
End Module
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||||
<StartArguments>-Mode%40IMPO -Source%40E:\TEMP\TEST.pdf -Target%40"W:\ImportWIDIG\Testfile.pdf" -WMOT%40"DIGITAL DATA - Entwicklung" -index%40{"Integer 23"=4711%3b"String 38"=WeDigNoWIDig%3b"Boolean 04"=false}</StartArguments>
|
<StartArguments>-Mode%40IMPV -Source%40E:\TEMP\TEST.pdf -Target%40"W:\ImportWIDIG\Testfile.pdf" -WMOT%40"DIGITAL DATA - Entwicklung" -index%40{"Integer 23"=4711%3b"String 38"=WeDigNoWIDig%3b"Boolean 04"=false}</StartArguments>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -53,7 +53,6 @@ E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\DigitalData.Modu
|
|||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\DigitalData.Modules.Language.pdb
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\DigitalData.Modules.Language.pdb
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\DigitalData.Modules.Language.xml
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\DigitalData.Modules.Language.xml
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\protobuf-net.xml
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\bin\Debug\protobuf-net.xml
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.vbprojAssemblyReference.cache
|
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.Resources.resources
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.Resources.resources
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.vbproj.GenerateResource.cache
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.vbproj.GenerateResource.cache
|
||||||
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.vbproj.CoreCompileInputs.cache
|
E:\SchreiberM\Visual Studio\GIT\WIDIG\WIDigConsoleApp\obj\Debug\WIDigConsoleApp.vbproj.CoreCompileInputs.cache
|
||||||
|
|||||||
Binary file not shown.
BIN
WIDigForm/.vs/WIDIG/v15/.suo
Normal file
BIN
WIDigForm/.vs/WIDIG/v15/.suo
Normal file
Binary file not shown.
@ -15,4 +15,5 @@ Module Runtime
|
|||||||
Public oWMObjecttype As String
|
Public oWMObjecttype As String
|
||||||
Public oIndexArr As String()
|
Public oIndexArr As String()
|
||||||
Public WMIndices As List(Of String)
|
Public WMIndices As List(Of String)
|
||||||
|
Public OExtension As String
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -63,9 +63,10 @@ DigitalData.Modules.Config
|
|||||||
<param name="LogConfig">LogConfig instance</param>
|
<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="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="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>
|
<param name="ForceUserConfig">Override values from ComputerConfig with UserConfig</param>
|
||||||
</member>
|
</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>
|
<summary>
|
||||||
Creates a new ConfigManager with a single (user)config path
|
Creates a new ConfigManager with a single (user)config path
|
||||||
</summary>
|
</summary>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -122,6 +122,8 @@ Public Class frmMain
|
|||||||
ElseIf oArg.StartsWith("-Target@") Then
|
ElseIf oArg.StartsWith("-Target@") Then
|
||||||
oTargetPath = oArg.Replace("-Target@", "")
|
oTargetPath = oArg.Replace("-Target@", "")
|
||||||
Dim oWMFolder = System.IO.Path.GetDirectoryName(oTargetPath)
|
Dim oWMFolder = System.IO.Path.GetDirectoryName(oTargetPath)
|
||||||
|
Dim oWindowsPath = oTargetPath
|
||||||
|
OExtension = IO.Path.GetExtension(oWindowsPath)
|
||||||
Dim oNormalizePath = WINDREAM.GetNormalizedPath(oTargetPath)
|
Dim oNormalizePath = WINDREAM.GetNormalizedPath(oTargetPath)
|
||||||
If WINDREAM.TestFileExists(oTargetPath) = False Then
|
If WINDREAM.TestFileExists(oTargetPath) = False Then
|
||||||
LOGGER.Info($"WMFile [{oTargetPath}] not existing!")
|
LOGGER.Info($"WMFile [{oTargetPath}] not existing!")
|
||||||
@ -266,7 +268,7 @@ Public Class frmMain
|
|||||||
Public Function StreamIndexFile()
|
Public Function StreamIndexFile()
|
||||||
Try
|
Try
|
||||||
'Checks and creates the path if necessary
|
'Checks and creates the path if necessary
|
||||||
WINDREAM.NewFolder(oTargetPath)
|
WINDREAM.NewFolder(oTargetPath, oExtension)
|
||||||
Dim oResult As Boolean = False
|
Dim oResult As Boolean = False
|
||||||
If oMode = "IMPV" Then
|
If oMode = "IMPV" Then
|
||||||
oResult = WINDREAM.NewFileStream(oSourceFile, oTargetPath)
|
oResult = WINDREAM.NewFileStream(oSourceFile, oTargetPath)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0
WIDigForm/obj/Debug/build.force
Normal file
0
WIDigForm/obj/Debug/build.force
Normal file
Loading…
x
Reference in New Issue
Block a user