anyone know?
Printable View
anyone know?
From your posts it seems that you are learning VB. NET from this forum :D
There is a FileInfo and File class in System.IO namespace that you can look at them for what you need.
If you want to be notified when a file is created, take a look at the System.IO.FileSystemWatcher class; otherwise the previous reply is your answer ;)
tried it, but it seems to log "I:\" fine, but does nothing with I:\Documents and Settings\VaxoP\Local Settings\Temporary Internet Files
is it possible to monitor subdirectories as well?
here's a quick example to get you started.
:)VB Code:
[COLOR=BLUE]Dim[/COLOR] fileTime [COLOR=BLUE]As[/COLOR] [COLOR=BLUE]String[/COLOR] = IO.File.GetCreationTime("C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5\index.dat") MessageBox.Show(fileTime)
Yes.Quote:
Originally posted by VaxoP
is it possible to monitor subdirectories as well?
how can you monitor subdirectories as well?
The FileSystemWatcher object has a IncludeSubdirectories property. Set it to true.