First post, by David00
Hello,
I noticed that this function isn't supported in DOSBox. There were some old posts from 2006 about this, but the links don’t work anymore.
Looking at the source for DOS_GetFileDate (Fn 5700h), I can see it pulling the date and time from the file’s directory entry date and time fields:
*otime = Files[handle]->time;
*odate = Files[handle]->date;
I thought it would be easy to implement a DOS_SetFileDate by simply reversing these and then writing out the directory entry. That is what I believe happens in real DOS, with the HCB date and time updated, as well as being marked as modified so that the directory entry is written to disk as part of a subsequent File Close (3Eh).
I’m not a C/C++ programmer, and would struggle to implement this. Can it be considered for implementation in the next release please?