Recording/accessing RISC OS build dates
John Williams (567) 768 posts |
Where does RISC OS get the build date from to put in its switcher info window? I had thought it might be the date of the Utility module, but it seems that I am mistaken. I like to record, for the benefit of my back-up files, a little info file in the image to which I write the SD card name and a description (make, size) for easy future reference. To be able to add the actual build date to this automagically would be useful to me, but so far I have only been able to extract the Utility module date by parsing its Help string. I know that FX0 gives me the required information, but cannot see how to record it! Redirection doesn’t seem to work with this FX call! It must be possible at some level, as SysLog’s Wimp log can catch it. If there isn’t an easy answer, two possibilities occur to me to help with this: 1. The Utility module could be re-dated each buildor 2. A dummy module could be created with no other function than to record the build date in its Help.Observations? |
Stuart Painting (5389) 714 posts |
*FX0 is just a wrapper around OS_Byte 0. If you call OS_Byte 0 directly you should be able to extract the information you need. |
John Williams (567) 768 posts |
Thank you – that is very helpful! |
David Pitt (3386) 1248 posts | |
John Williams (567) 768 posts |
and 6 and 7 – that’s even more useful! |
John Williams (567) 768 posts |
My info file on the SD card and to be copied to the back-up now reads:
That’s useful! Thanks to you both! |
John Williams (567) 768 posts |
Just as an additional point, my info file is actually called: [hardspace]!info[hardspace]
which makes it copy to back-up last-of-all, but appear in the filer display first. So it serves as an obvious reassurance that the back-up has completed successfully! This is backing-up to Fat32FS format HDs via SCSI. |