Originally posted by Tom Hanlin:
The standard DOS and Windows functions for setting file time/date stamps
don't appear to work on directories. It might be worth trying the old DOS 1.x
FCB-style file functions, just in case. You'd need to use CALL INTERRUPT or
asm code from PB/DOS.
The standard DOS and Windows functions for setting file time/date stamps
don't appear to work on directories. It might be worth trying the old DOS 1.x
FCB-style file functions, just in case. You'd need to use CALL INTERRUPT or
asm code from PB/DOS.
The Extended Get/Set File Attributes function (int 21h, ax =
7143h) will work for changing the date/time on directories,
so Rolf's project is doable with PB3.5. This function is
part of the DOS 7.X LFN API and requires Ifsmgr, so it only
works in a Windows DVM not pure DOS.
Just tested this (on a Win98 box) and it handles regular
directories just fine, but while it seemed to succeed on the
directory aliases (. and ..) while the program was running,
doing a DIR outside the program revealed that the date/time
for those had not actually changed.
Anyway, I now have a little program that can reset directory as
well as file date/time stamps (created, modified, and last
accessed [date only for that one]) and is LFN compatible
(uses an LFN compat clone of DIR$). Rolf, if you want to take a
look at this just say so and I'll spruce it up and make it
available for download.
Bob
------------------
Leave a comment: