🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #41848

Need help with MSC 5.10 run-time library routine

#41848
From: Barry Kimelman
Date: Wed, 07 Feb 1990 11:48
20 lines
1379 bytes
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.
Technical Details
Message-ID: <999@philmtl.philips.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!philmtl!philmtl.philips.ca!barry

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!philmtl!philmtl.philips.ca!barry
From: barry@philmtl.philips.ca (Barry Kimelman)
Newsgroups: comp.sys.ibm.pc
Subject: Need help with MSC 5.10 run-time library routine
Message-ID: <999@philmtl.philips.ca>
Date: 7 Feb 90 11:48:20 GMT
Sender: barry@philmtl.philips.ca
Organization: Philips Electronics Ltd. -  St. Laurent  P.Q., Canada
Lines: 20