From 388fc51a3793c1340afc8943bd9f8dc14344cbb5 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Fri, 20 Dec 2024 16:50:12 +0100 Subject: [PATCH] - inserita cancellazione file in try catch --- .../DoorListPage/DoorListPageVM.vb | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/Effector.Plugin.FiveLakes/DoorListPage/DoorListPageVM.vb b/Effector.Plugin.FiveLakes/DoorListPage/DoorListPageVM.vb index cbff647..5f5e3f7 100644 --- a/Effector.Plugin.FiveLakes/DoorListPage/DoorListPageVM.vb +++ b/Effector.Plugin.FiveLakes/DoorListPage/DoorListPageVM.vb @@ -165,23 +165,27 @@ Public Class DoorListPageVM Dim sGenDDFDirPath As String = "" GetPluginPrivateProfileString(S_GENERAL, K_GENDDFDIR, "", sGenDDFDirPath) Dim sDoorFileName As String = CurrRequestDoor.sDDFName & "_" & CurrRequestDoor.nId - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".tok") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.tok") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".cnc") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_a.cnc") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_b.cnc") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.cnc") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2_a.cnc") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".html") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.html") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".log") - File.Delete(sGenDDFDirPath & "\" & CurrRequestDoor.sDDFName & ".nge") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".nge") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".sest") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.sest") - File.Delete(sGenDDFDirPath & "\" & CurrRequestDoor.sDDFName & ".txt") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".txt") - File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.txt") + Try + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".tok") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.tok") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".cnc") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_a.cnc") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_b.cnc") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.cnc") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2_a.cnc") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".html") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.html") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".log") + File.Delete(sGenDDFDirPath & "\" & CurrRequestDoor.sDDFName & ".nge") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".nge") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".sest") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.sest") + File.Delete(sGenDDFDirPath & "\" & CurrRequestDoor.sDDFName & ".txt") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & ".txt") + File.Delete(sGenDDFDirPath & "\" & sDoorFileName & "_2.txt") + Catch ex As Exception + + End Try End If WriteBackup() ArgumentsResult = m_ExecProcessManager.ArgumentsResultDequeue