.7 Delete WMFile
This commit is contained in:
@@ -149,24 +149,24 @@ Public Class ClassAllgemeineFunktionen
|
||||
End If
|
||||
|
||||
End Sub
|
||||
Public Function Delete_xffres(originFile As String, clsWD As ClassWindream_allgemein)
|
||||
Try
|
||||
Dim Stammname As String = System.IO.Path.GetFileNameWithoutExtension(originFile)
|
||||
Dim Path As String = System.IO.Path.GetDirectoryName(originFile)
|
||||
Dim xffres As String = Path & "\" & Stammname & ".xffres"
|
||||
If file_exists(xffres, clsWD) = True Then
|
||||
System.IO.File.Delete(xffres)
|
||||
LOGGER.Info("Datei " & xffres & " erfolgreich gelöscht")
|
||||
Return True
|
||||
Else
|
||||
Return Nothing
|
||||
End If
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
LOGGER.Info(" Fehler bei Delete_xffres", True)
|
||||
LOGGER.Info("Fehlermeldung: " & ex.Message)
|
||||
End Try
|
||||
End Function
|
||||
'Public Function Delete_xffres(originFile As String, clsWD As ClassWindream_allgemein)
|
||||
' Try
|
||||
' Dim Stammname As String = System.IO.Path.GetFileNameWithoutExtension(originFile)
|
||||
' Dim Path As String = System.IO.Path.GetDirectoryName(originFile)
|
||||
' Dim xffres As String = Path & "\" & Stammname & ".xffres"
|
||||
' If file_exists(xffres, clsWD) = True Then
|
||||
' System.IO.File.Delete(xffres)
|
||||
' LOGGER.Info("Datei " & xffres & " erfolgreich gelöscht")
|
||||
' Return True
|
||||
' Else
|
||||
' Return Nothing
|
||||
' End If
|
||||
' Catch ex As Exception
|
||||
' LOGGER.Error(ex)
|
||||
' LOGGER.Info(" Fehler bei Delete_xffres", True)
|
||||
' LOGGER.Info("Fehlermeldung: " & ex.Message)
|
||||
' End Try
|
||||
'End Function
|
||||
'Public Function Delete_File(originFile As String)
|
||||
' Try
|
||||
|
||||
|
||||
Reference in New Issue
Block a user