Thanks in advance.
Ken Herndon
Arpali Software
FILETIME ft;
SystemTimeToFileTime( &st, &ft );
HANDLE hFile = ::CreateFile( pcszFilename, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
bool bRetVal = false;
if( SetFileTime( hFile,(LPFILETIME) NULL, (LPFILETIME) NULL, &ft) )
{
bRetVal = true;
}
CloseHandle( hFile );
return bRetVal;
}
--
ru...@gipsysoft.com
http://www.gipsysoft.com
Zoom+, Zoom in, out, capture, count pixels, get the colour at the cursor
copy to clipboard, save to file, all of the features you expect.
QHTM, Small, light Win32 HTML control in just one 200k DLL.
h wrote in message <36E89F6F...@miele-herndon.com>...
Use the cunningly hidden "SetFileTime" API.
Chris
-----------------------------------------------------------------------
Chris Marriott, SkyMap Software, UK (ch...@skymap.com)
Visit our web site at http://www.skymap.com
Astronomy software written by astronomers, for astronomers
SetFileTime
I wrote a small program that modifies the date/time stamp for files and
directories.
Features not found in other "time stampers":
- will recurse sub directories
- will modify directory date/time as well
- will modify date/time of a read only file or directory
(without changing the attributes)
- will modify all three attributes (created, modified,
last accessed)
- allows for "try run" - that is you can run it just to see
what files will be affected - no modification is done.
EXE and source are in:
ftp://rabbit.apexsc.com/pub/tstamp.zip (36k)
To see the options and syntax type TSTAMP.EXE with no arguments. This
is a Win32 console program therefore it will not work in "real" DOS
window :)
enjoy
--
Lac