Page 1 of 1

File modified date/time

Posted: Fri Feb 16, 2024 10:42 am
by t0nyt
Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks

Re: File modified date/time

Posted: Fri Feb 16, 2024 11:00 am
by BSJR
t0nyt wrote: Fri Feb 16, 2024 10:42 am Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks
Toolkit 2 has two functions to do just that. FUPDT(), FBKDT() will read the update and backup dates.
FVERS() will get the version number. This increases from 1 each time the file is saved under the same name.

BSJR

Re: File modified date/time

Posted: Fri Feb 16, 2024 11:06 am
by t0nyt
BSJR wrote: Fri Feb 16, 2024 11:00 am
t0nyt wrote: Fri Feb 16, 2024 10:42 am Following on from a previous post it does appear, reading online, that on floppy disks each file does have a “modified date/time” stored

Is there any Dir equivalent command or utility that displays this please?

Many thanks
Toolkit 2 has two functions to do just that. FUPDT(), FBKDT() will read the update and backup dates.
FVERS() will get the version number. This increases from 1 each time the file is saved under the same name.

BSJR
Many thanks!

Re: File modified date/time

Posted: Fri Feb 16, 2024 11:56 am
by martyn_hill
Hi tonyt

Just to add that TK2 also has the 'WSTAT' command that acts like DIR but adds datestamp and filesize to the usual directory listing.

Re: File modified date/time

Posted: Fri Feb 16, 2024 12:01 pm
by tofro
And the C68 package contains a "touch" utility that sets the update time of a file to "now".

Re: File modified date/time

Posted: Fri Feb 16, 2024 12:05 pm
by t0nyt
Thanks all, that will all help a lot

Now I want a RTC more than ever!

Re: File modified date/time

Posted: Sat Feb 17, 2024 9:48 am
by NormanDunbar
DJToolkit has functions to read and set those dates in the file header.

WinBack used them back in the day to determine if a file needed backing up or not. Also backs up floppies and such like, not just hard discs.

Both available from Dilwyn's web page, linked as QL Homepage at the top of every forum page.

Cheers,
Norm.

Re: File modified date/time

Posted: Sat Feb 17, 2024 7:05 pm
by Derek_Stewart
Hi,

The only RTC I had was on Gold Card, Super Gold Card, Minerva MKII, QIMI.

Could a battery be attached to the 8302 to backup the date, as shown in this QIMI diagram:
QIMI Mouse Interface.jpg

qimi_with_battery.jpg
qimi_with_battery.jpg (35.21 KiB) Viewed 974 times


This could be reproduced.