Hi to all,
I have a small VB.Net application that needs to collect file information from a share on our domain. I have noticed that the file's last access time is not correct if the file is on the share. If I copy the file to my local system the information returned is correct.
What is causing the issue? Is my code correct?
Dim FileInfo As New IO.FileInfo(FileNameHere)
If FileInfo IsNot Nothing Then
Dim strLastModified As String = System.IO.File.GetLastWriteTime(convertedfile.ToString()).ToShortDateString()