|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Oct 2008
Messaggi: 365
|
[VB.NET] Intercettare file spostato
Ciao a tutti,
qualcuno conosce un metodo per intercettare se in una cartella viene spostato un qualsiasi file? Ho tentato con un oggetto FileSystemWatcher ma l'evento viene intercettato solo se creo un file all'interno della cartella, non se ce lo sposto... Codice:
fsWatcher.Filter = "*.*" fsWatcher.IncludeSubdirectories = True fsWatcher.Path = "C:\Users\Luca\Desktop\macero" fsWatcher.NotifyFilter = NotifyFilters.LastWrite AddHandler fsWatcher.Changed, AddressOf filecreato AddHandler fsWatcher.Created, AddressOf filecreato fsWatcher.EnableRaisingEvents = True
__________________
Firma in sciopero! |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 16:29.