Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2003, 02:17 AM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retrieving file create time

I need to retrieve the create/last modified date/time of nominated file in VB.Net. Can anyone help??
 
Old July 9th, 2003, 09:22 AM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you include the System.IO namespace there is a "File" object and this object has methods like GetCreationTime, GetLastAccessTime, GetLastWriteTime. You can retrieve the values you want by giving the filePath + fileName as a parameter to the methods.
Hope this helps.





Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!!! retrieving time and date from SQL 2005 wearyrecca Visual Basic 2005 Basics 2 September 11th, 2007 10:28 AM
Retrieving and then passing XML file catbollu C# 2005 1 August 20th, 2007 01:07 PM
Saving/Retrieving Image file to Database davekrunal46 VB How-To 6 January 11th, 2006 04:41 AM
Get file create time jenny.ww Java Espanol 0 December 8th, 2004 12:10 PM
Retrieving the Author of a file in ASP.Net mahulda ASP.NET 1.0 and 1.1 Basics 1 July 18th, 2004 10:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.