barry@philmtl.philips.ca (Barry Kimelman) (02/07/90)
Hello : I have a MSC 5.10 program which is trying to update a file's time & date fields by using the run-time library routine _dos_setftime(). What my program is trying to do is actually the equivalent of the UNIX touch command (ie. update last mod time & date to the current time & date). So, my program gets the current time & date via the calls _dos_getdate & _dos_gettime ( I dumped the values returned by these calls and everything was fine). I then appropriately shift and bitwise-or the bits in the time & date to conform to the foprmat of the time & date fields required by the _dos_setftime() routine. My program then calls _dos_setftime(). No error is indicated (ie. return value from function is zero), but after when I check the time & date of the file (dir command) the time & date have not changed !!!. Any ideas as to what I might be doing wrong ??? Any help would be appreciated. Please e-mail responses if possible.