File Times Without Modifying Last Access

Currently this program only performs two simple functions:

1.) To list a file's Create, Modified and Access dates and times without changing the last Access date to today, as is done when using the properties function of Windows Explorer

2.) To write the file data to a Microsoft Heirarchical Flexgrid

To download all of the files to run this program in MS Visual C++, click "FileTimes.zip"

This program could easily be expanded to return file size and other file properties.
Also I will probably expand this code to recursively run thru directory structures.

To see a sample of recursive directory expansion, click here

To e-mail a suggestion or comment click on: sam@gilcrist.com

Return to www.gilcrist.com



void CFileInventoryDlg::OnOK()
{
/***********************************************************************************
Author : R. Sam Gilcrist
Date : 12 Mar 2003
Purpose : ON_OK, find the system times of a file, and display them in a flex grid
***********************************************************************************/

}

void CFileInv::GetFileTimes(char *sFile, char *sCreate, char *sAccess, char *sMod)
{
/***********************************************************************************
Author : R. Sam Gilcrist
Date : 12 Mar 2003
Purpose : Given a file name, return a string for each of the file times
Note
: The times listed will be translated into Local Time and may not reflect the times
: the file were saved, modified, and accessed originally if the saving and detecting
:are done in different time zone
***********************************************************************************/

}

void CFileInv::ConvertDateToString(SYSTEMTIME &stLocal, char *sTime) {
/***********************************************************************************
Author : R. Sam Gilcrist
Date : 12 Mar 2003
Purpose : Given a Sytem Time variable, return a string
***********************************************************************************/

}