VS2010 komponentlerini teker incelerken dikkatimi çekti. Nedir bu wather? dedim.
Belirttiğiniz konumdaki tüm dosya hareketlerini anlık olarak size ispiyonlayabiliyor.
Yeni bir windows form projesi açın; bir listbox, bir buton ekleyip kodu yapıştırın.
[code=vba]
Imports System.IO
Public Class Form1
Private WithEvents w As New FileSystemWatcher
Private Sub w_Changed(ByVal sender As Object, ByVal e As System.IO.FileSystemEventArgs) Handles w.Changed
Me.ListBox1.