fix result handler deleting exported files

This commit is contained in:
Jonathan Jenne
2019-03-25 17:03:42 +01:00
parent 676e9d40b8
commit 30bddc05bb
2 changed files with 124 additions and 49 deletions

View File

@@ -188,16 +188,16 @@ Public Class DDWDResultHandler
Logger.Info("Keine aktiven Profile WMResulthandler vorhanden")
notcompleted = True
End If
Try
For Each _file In clsCURRENT.TEMP_FILES
'Dim oFile As New FileInfo(_file)
'If (DateTime.UtcNow - oFile.CreationTimeUtc > TimeSpan.FromDays(1)) Then
System.IO.File.Delete(_file)
'End If
Next
Catch ex As Exception
'Try
' For Each _file In clsCURRENT.TEMP_FILES
' 'Dim oFile As New FileInfo(_file)
' 'If (DateTime.UtcNow - oFile.CreationTimeUtc > TimeSpan.FromDays(1)) Then
' System.IO.File.Delete(_file)
' 'End If
' Next
'Catch ex As Exception
End Try
'End Try
_database.Execute_non_Query("UPDATE TBWMRH_KONFIGURATION SET LAST_TICK = GETDATE() WHERE GUID = 1")
If oFirstRun = True Then