CLR: .Net / Mono / Boo / Otros CLR > VB .NET
Directorios
(1/1)
akira:
lo que necesitaria hacer es cargar mas de un directorio en el tipo filesystemwatcher.path, osea que me vea los eventos en mas de un direcotio, ej. C:\TEMP y C:\PRUEBA, como hago esto?
Desde ya muchas gracias.
Saludos, aca paso el codigo donde defino eso.
--- Código: Text --- watchfolder = New System.IO.FileSystemWatcher watchfolder.Path = txt_watchpath.Text watchfolder.IncludeSubdirectories = True watchfolder.NotifyFilter = IO.NotifyFilters.DirectoryName watchfolder.NotifyFilter = watchfolder.NotifyFilter Or _ IO.NotifyFilters.FileName watchfolder.NotifyFilter = watchfolder.NotifyFilter Or _ IO.NotifyFilters.Attributes El txt_watchpath.text lo reemplazaria por los directorios que necesito ver.
Saludos.
Navegación
Ir a la versión completa