FREE - Copyright 1987 by Tom Smythe RealTime Asc. Seattle, WA (206)-547-7292 (206)-774-4735 BBS "FREE" returns the available free bytes on any storage device that AmigaDOS sees as a drive. A list of up to six drives is kept by the program and may be cleared or added to at any time by the user. "Chip" and "Fast" memory (if available) is always displayed, except when in command mode. If a device is not currently mounted, a requester is displayed. If the device is not subsequently mounted, it is ignored in the output. Command Mode is initiated by the "-x" parameter. The full path name must be specified e.g. "df0:c/free -x" "-x" with no parameters re-initializes FREE's device list. "-x DFn: DHn: JHn VDn: RAM:" adds named devices to list. "?" returns a USAGE statement. The author grants license to copy and distribute this program for non- commercial purposes as long as the Copyright notice remains intact. I thought it might be fun to write a program that goes in and alters its own executable code. This was the result of these efforts. I had fun with it. Hope you do too. Tom Smythe Seattle, WA 01/29/87 P.S. - if you create and mount a partition on the hard drive (such as "P2:", discussed in the A2090 hard-drive controller user manual), you must use "ASSIGN" to give that partition a logical device name that "Free" will accept. The following pertains to a hard drive with three partitions. For convenience and consistency, I'll start with "DH0:". The first partition bears that name. The second (P2:) is ASSIGNed "DH1:", and the third (P3:) is ASSIGNed "DH2:". For a Janus drive (JHn:), the treatment would be basically the same. This would be part of your startup-sequence.