'Process_Globals...
Public fw As FileWatcher
'appstart....
fw.Initialize("fw").SetWatchList(Array As String(ecmFolder)).StartWatching
Sub fw_CreationDetected(FileName As String) ' new file in folder detected...
'Log("CreationDetected: " & FileName) 'Logs the creation of a new file or folder
If inprocess = False Then ' a timer is used to process the new file...
inprocess = True
proctimer.Enabled = True ' enable the timer which works on the file...
End If
End Sub