Amiga Bootlog

A few lines of AmigaDOS Script can create a bootlog for your Amiga. The following code maintains a bootlog in S:bootlog. The existing bootlog is copied to RAM: each time because the join command does not allow the destination file to be the same file as one of the source files. If the code is included in the start-up sequence, the first line (which contains version information for use with the version command) should be removed. The code can also be placed in its own file, with the script attribute set, in the WBStartup directory.

; $VER: bootlog.dos 1.0 (27/11/2000)
; bootlog.dos (c) 2000 Safalra (Stephen Morley)

Echo "Booted on `date`" to RAM:bootlogappend
If exists S:bootlog
  Copy S:bootlog to RAM:bootlog
Else
  Echo "Bootlog.dos (c) 2000 Safalra (Stephen Morley)" to RAM:bootlog
Endif
Join RAM:bootlog RAM:bootlogappend as S:bootlog
Delete RAM:bootlog quiet
Delete RAM:bootlogappend quiet

The bootlog will look like this:

Bootlog.dos (c) 2000 Safalra (Stephen Morley)
Booted on Friday 20-Dec-03 13:01:06
Booted on Sunday 21-Dec-03 10:17:43
Booted on Sunday 21-Dec-03 19:27:29
Booted on Monday 22-Dec-03 16:34:38
This article was last edited on 15th April 2007. The author can be contacted using the form below.
Back to home page
Bookmark with: