| Author: Kapil Dhawan 17 Jun 2008 | Member Level: Gold Points : 2 |
Hello Nice piece of code Thanks for sharing your knowledge with us. I hope to see more good code from your side This code is going to help lots of guys. Ton Thanks to you Regards, Kapil
|
| Author: RamyaNaidu 07 Aug 2008 | Member Level: Silver Points : 2 |
Hai look at this code it may help u Try Dim FileObj As New FileInfo("test.dat") FileObj.CreationTime = DateTime.Now FileObj.LastAccessTime = DateTime.Now FileObj.LastWriteTime = DateTime.Now
Console.WriteLine("test.dat date and time updated") Catch Ex As Exception Console.WriteLine("Error updating test.dat " & Ex.Message) End Try
For finding file size
Dim MyFile As New FileInfo(MyFilePath) Dim FileSize As Long = MyFile.Length
|