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!

How to set timestamp of directory?

Status
Not open for further replies.

hstijnen

Programmer
Nov 13, 2002
172
NL
Hi,

How can I set the OS timestamp of a Directory?
(for a file it can be done with FileSetDate, but that doesn't work for Directory)

Thanks,

Henk
 
#include <windows.h> and use GetFileTime. Directory is also a file, but it contains file names and has special meaning.

Ion Filipski
1c.bmp
 
Ion, I can't find the specs of GetFileTime in CBuilder Help.
Do you know why FileSetDate doesn't work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top