Use an object FileSystemWatcher
.
Dim folderToWatch As New FileSystemWatcher
folderToWatch.Path = "C:\FoldertoWatch\"
AddHandler folderToWatch.Created, AddressOf folderToWatch_Created
folderToWatch.EnableRaisingEvents = True
folderToWatch.IncludeSubdirectories = True
Console.ReadLine()
( folderToWatch_Created) - :
Console.WriteLine("File {0} was just created.", e.Name)