MS DeleteScans CheckScanFolder
This commit is contained in:
parent
073be6abce
commit
d7ffdb06c0
1
.gitignore
vendored
1
.gitignore
vendored
@ -154,3 +154,4 @@ $RECYCLE.BIN/
|
|||||||
|
|
||||||
# Mac desktop service store files
|
# Mac desktop service store files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/.vs/Global_Indexer/v15/Server/sqlite3
|
||||||
|
|||||||
@ -66,6 +66,7 @@
|
|||||||
Public CURR_DELETE_ORIGIN As Boolean = False
|
Public CURR_DELETE_ORIGIN As Boolean = False
|
||||||
Public CURRENT_DT_REGEX As DataTable
|
Public CURRENT_DT_REGEX As DataTable
|
||||||
Public REGEX_CLEAN_FILENAME As String = "[?*^""<>|]"
|
Public REGEX_CLEAN_FILENAME As String = "[?*^""<>|]"
|
||||||
|
Public CURRENT_DROPTYPE
|
||||||
End Module
|
End Module
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("1.9.9.5")>
|
<Assembly: AssemblyVersion("1.9.9.6")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
|
|
||||||
<Assembly: NeutralResourcesLanguageAttribute("")>
|
<Assembly: NeutralResourcesLanguageAttribute("")>
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1753,6 +1753,7 @@ Public Class frmIndex
|
|||||||
CURRENT_ISATTACHMENT = False
|
CURRENT_ISATTACHMENT = False
|
||||||
DropType = ClassDatabase.Execute_Scalar("SELECT HANDLE_TYPE FROM TBGI_FILES_USER WHERE GUID = " & CURRENT_WORKFILE_GUID, MyConnectionString, True)
|
DropType = ClassDatabase.Execute_Scalar("SELECT HANDLE_TYPE FROM TBGI_FILES_USER WHERE GUID = " & CURRENT_WORKFILE_GUID, MyConnectionString, True)
|
||||||
chkdelete_origin.Visible = False
|
chkdelete_origin.Visible = False
|
||||||
|
CURRENT_DROPTYPE = DropType.Replace("|", "")
|
||||||
If DropType = "|DROPFROMFSYSTEM|" Then
|
If DropType = "|DROPFROMFSYSTEM|" Then
|
||||||
chkdelete_origin.Visible = True
|
chkdelete_origin.Visible = True
|
||||||
chkdelete_origin.Checked = CURR_DELETE_ORIGIN
|
chkdelete_origin.Checked = CURR_DELETE_ORIGIN
|
||||||
@ -1794,6 +1795,7 @@ Public Class frmIndex
|
|||||||
Me.Text = "Indexing of email-Attachment:"
|
Me.Text = "Indexing of email-Attachment:"
|
||||||
End If
|
End If
|
||||||
ElseIf DropType = "|FW_SIMPLEINDEXER|" Then
|
ElseIf DropType = "|FW_SIMPLEINDEXER|" Then
|
||||||
|
|
||||||
If USER_LANGUAGE = "de-DE" Then
|
If USER_LANGUAGE = "de-DE" Then
|
||||||
Me.Text = "Indexierung einer Folderwatch-Datei:"
|
Me.Text = "Indexierung einer Folderwatch-Datei:"
|
||||||
Else
|
Else
|
||||||
@ -2436,8 +2438,11 @@ Public Class frmIndex
|
|||||||
Sub DeleteFile()
|
Sub DeleteFile()
|
||||||
Try
|
Try
|
||||||
If CURR_DELETE_ORIGIN = False Then
|
If CURR_DELETE_ORIGIN = False Then
|
||||||
If LogErrorsOnly = False Then ClassLogger.Add(">> DeleteFile - CURR_DELETE_ORIGIN = False", False)
|
If CURRENT_DROPTYPE <> "FW_SIMPLEINDEXER" Then
|
||||||
Exit Sub
|
If LogErrorsOnly = False Then ClassLogger.Add(">> DeleteFile - CURR_DELETE_ORIGIN = False", False)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
File.Delete(CURRENT_WORKFILE)
|
File.Delete(CURRENT_WORKFILE)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
|||||||
@ -485,6 +485,34 @@ Public Class frmStart
|
|||||||
tslblFW.Visible = True
|
tslblFW.Visible = True
|
||||||
Else
|
Else
|
||||||
tslblFW.Visible = False
|
tslblFW.Visible = False
|
||||||
|
End If
|
||||||
|
If FWSCAN_started = True Then
|
||||||
|
Dim fileEntries As String() = Directory.GetFiles(CURRENT_SCAN_FOLDERWATCH)
|
||||||
|
' Process the list of files found in the directory.
|
||||||
|
Dim fileName As String
|
||||||
|
For Each fileName In fileEntries
|
||||||
|
For Each row As DataRow In DTEXCLUDE_FILES.Rows
|
||||||
|
Dim content As String = row.Item(0).ToString.ToLower
|
||||||
|
If fileName.ToLower.Contains(content) Then
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
Next
|
||||||
|
Dim handleType As String
|
||||||
|
If fileName.ToLower.EndsWith(".msg") Then
|
||||||
|
handleType = "|FW_OUTLOOK_MESSAGE|"
|
||||||
|
Else
|
||||||
|
handleType = "|FW_SIMPLEINDEXER|"
|
||||||
|
End If
|
||||||
|
'Die Datei übergeben
|
||||||
|
If LogErrorsOnly = False Then ClassLogger.Add(">> Adding file from Scanfolder after startup:" & fileName, False)
|
||||||
|
If ClassIndexFunctions.FileExistsinDropTable(fileName) = False Then
|
||||||
|
ClassFilehandle.Decide_FileHandle(fileName, handleType)
|
||||||
|
Else
|
||||||
|
ClassLogger.Add(">> Scanfolder Startup: File already exists:" & fileName, False)
|
||||||
|
End If
|
||||||
|
Next fileName
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
If TimerFolderWatch.Enabled = False Then
|
If TimerFolderWatch.Enabled = False Then
|
||||||
TimerFolderWatch.Start()
|
TimerFolderWatch.Start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user