Changing the timestamp on a directory  
Author Message
Smeg Plaza





PostPosted: Visual C++ General, Changing the timestamp on a directory Top

I'm using Visual C++ V5, under Windows XP, and am trying to find a Win32 API function which will allow me to change the time/date stamp on a directory entry.

I'm happy to use C, C++, MFC etc. (not using .NET at the moment though)...

Can anyone please suggest a way of doing this

Many thanks,

Smeg




Visual C++6  
 
 
Peter Ritchie





PostPosted: Visual C++ General, Changing the timestamp on a directory Top

Seriously, you're really using version 5 of visual C++   Not 6   Wow.

Anyway, see Obtaining a Handle to a Directory, and you can use the Windows SDK function SetFileTime