MS Common Verzeichnisstruktur

This commit is contained in:
2024-03-19 15:10:51 +01:00
parent a3c66ecd19
commit 5abc1d9779
7 changed files with 68 additions and 34 deletions

View File

@@ -364,7 +364,7 @@ Partial Public Class frmEnvelopeEditor
' Verschiebe die Datei
Try
Dim oFilePath As String = pSourcePath
Dim oDirectory As String = Path.GetDirectoryName(oFilePath)
Dim split As String() = oFilePath.Split("\")
Dim parentFolder As String = split(split.Length - 2)
pDestinationPath &= "\" + parentFolder
@@ -376,6 +376,7 @@ Partial Public Class frmEnvelopeEditor
File.Delete(pDestinationPath)
End If
System.IO.File.Move(pSourcePath, pDestinationPath)
System.IO.Directory.Delete(oDirectory)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Unexpected error in MoveFileWithNetUse")
End Try