CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 last modified date and time of text file

Print topic Send  topic

Author Message
Abs
Posted: 01/31/2006, 7:16 AM

Hi,

Please can someone tell me how I can display the last modified date and time of a text file located on the local network?

Thanks


Abs
Stan
Posted: 01/31/2006, 7:30 AM

You can try following

Dim fi1 As New System.IO.FileInfo(path)
Response.Write(fi.LastWriteTime.ToString())

Stan
Selvi
Posted: 02/20/2006, 8:42 PM

If i modify an attribute to another value, how do i get the modified time and then take that log and send it to a mailid to let them know which attribute was changed. I am using Perl
Abs
Posted: 03/23/2006, 4:22 PM

HI,

I used the foloowing:

Insert a lable (lastMod)

Dim path As String = (Server.MapPath("path\file.txt"))
Dim lastMod As DateTime = File.GetLastWriteTime(path)

Hope this helps

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.