Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting a file's date & time properties 1

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo - having copied a file with binary filestreams, I now want to set the date & time properties of the copied file to match the original file.
(The properties as seen in the struct ffblk.)
I've run a couple of searches that went nowhere - does anyone have any ideas?

Cheers,
Douglas JL

Common sense is what tells you the world is flat.
 
Have you looked at FileGetDate() and FileSetDate()? These need file handles but they should do what you want. BTW, there are several file/directory routines in the SYSUtils.h header. There was a four part series in C++ Developers Journal a couple of year ago. See James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
That looks about right to me - cheers, man! Common sense is what tells you the world is flat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top