Good evening,
Just like the title said, my problem is that in my folder watcher, when a file has no extension, it doesn't trigger my folder watcher.
Here is my 'incomplete' code
When I'm creating files with .txt, .csv, .ppt, etc, Hello world is being triggered.
But it doesn't trigger when the file has no extension.
I've tried: _FW3.Filter = ""
Still it doesn't work.
Thank you for your help and God bless.
Just like the title said, my problem is that in my folder watcher, when a file has no extension, it doesn't trigger my folder watcher.
Here is my 'incomplete' code
VB.NET:
' NOTE: This was inside a class.
Private WithEvents _FW3 As FolderWatcher
' NOTE: This was inside a function.
_FW3 = New FolderWatcher
_FW3.Path = "C:\sample"
_FW3.Filter = "*.*"
_FW3.Start()
' This should be triggered.
Private Sub _FW3_CreatedFile(filename As String) Handles _FW3.CreatedFile
MsgBox("hello world")
End Sub
When I'm creating files with .txt, .csv, .ppt, etc, Hello world is being triggered.
But it doesn't trigger when the file has no extension.
I've tried: _FW3.Filter = ""
Still it doesn't work.
Thank you for your help and God bless.