I am using VS2005 Pro. OS is W2K+SP4.
When I tried to use GetFileTime() / SetFileTime(),
I run into problems with the file handle (see my
previous posting from yesterday).

Is there a preferred, simpler way to do that?

Thanks,
David

Re: How to modify the time and/or date of a file? by Igor

Igor
Sat Jun 24 15:46:25 CDT 2006

"David F" <David-White@earthlink.net> wrote in message
news:Cphng.728$NP4.490@newsread1.news.pas.earthlink.net
> I am using VS2005 Pro. OS is W2K+SP4.
> When I tried to use GetFileTime() / SetFileTime(),
> I run into problems with the file handle (see my
> previous posting from yesterday).

You need to open the file with CreateFile first, then SetFileTime would
work. In that other post, you've never opened the file.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925