SetFileTime

BlitzMax Forums/BlitzMax Programming/SetFileTime

King Dave(Posted 2006) [#1]
I know this function isn't included in the official command set, but I was wondering if anyone has or can show me how to add this.

Basicly I want to be able to adjust the modified time of a file based on the time given by the GetFileTime function.

Only worried about windows, don't need it for linux or mac.


Thanks!


N(Posted 2006) [#2]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/setfileattributes.asp

That's the only thing I could find and it's Vista specific, so I'm not sure. It's probably not doable without getting pretty messy.


Brucey(Posted 2006) [#3]
You probably want to wrap utime() in some Max code... if you do it well, it should work on all platforms...

:-)


King Dave(Posted 2006) [#4]
ty both :)