PROGRAM IInfo SOURCE Written in 100% assembler using Macro68 V3.165. AUTHOR Nic Wilson Nic Wilson Software (Registered CBM (Aust) developer) 138d South Street TOOWOOMBA QUEENSLAND 4350 Australia EMAIL cbmvax!cbmaus!wilson!nic@uunet.uu.net or cbmehq!cbmaus!wilson!nic@cbmvax.commodore.com TELEPHONE +61 76 358539 After Hours Australian Time +61 76 358384 Work Hours Australian Time FAX +61 76 358384 (Same as Work Telephone) FUNCTION A replacement for the DOS 'Info' command. It takes the same optional parameter but supplies more information than the DOS command. Its main feature is the display of the maximum file size that will fit on a disk or drive, taking directory blocks into account. The disk size, amount used and amount free are displayed in Kilobyte or Megabyte rather than amount of blocks. I beleive this is much more useful and less confusing to some users. All this bundled into a program using optimised assembler that is smaller than the original DOS 'Info' command. (Try that C programmers). ACKNOWLEDGEMENTS Thank you to my friend Paul Coward (Digisoft) for a ...FAST assembler, Macro68 V3. Thank you to Fred Fish for his continuing work in distribution of our programs. Without his effort, distribution would be much more difficult if not impossible. COPYRIGHT This program, its source code and document files are (C) Copyright Nic Wilson Software 1992. DISTRIBUTION Fred Fish is exempt from the distribution conditions stated below. The program is Shareware and may be freely distributed on the condition that no profit is gained from this distribution either directly or indirectly. A small copying fee, no more than the cost of 1 (one) average 3.5 inch blank disk or $2.50 Australian whichever is the lesser. If this program is placed on a disk containing various utilities, the total charge for the disk MUST NOT BE GREATER THAN 2 (two) average 3.5 inch blank disks or $5.00 Australian whichever is the lesser. Crunching of the executable file is considered a breach of this agreement, due to the fact all current crunchers I have tested either fail, or are unstable on the 68040 CPU. Archival in the form of 'lharc' type programs is permitted. DONATIONS All donations in the form of cash, money order, travellers cheques, bank draft (in AUS dollars), goods, software or hardware will be gratefully accepted, and ensure further shareware programs from me. Overseas users, please do not send personal cheques. It is very difficult to convert them into cash. I give my sincere thanks to all those users who have donated to my work in the past. It is with your continuing support to all programmers that the Amiga has such a vast amount of quality shareware programs available, and that I am able to continue work on shareware programs aswell as commercial ones. If you are using my programs and haven't donated then SHAME ON YOU. All users who donate will receive a disk, full of the latest versions of all my shareware programs. REQUIREMENTS Any Amiga Any CPU Kickstart/Workbench 1.2 or greater. INSTALLING IInfo should reside in your C: directory or be in your path somewhere. IInfo is pure and the pure bit should already be set on the executable. This means that IInfo can be made resident. VERSION You may always check the version of IInfo you are using with the DOS 'version' command. USAGE IInfo An optional device name if you desire only this single device to be displayed. If this parameter is not given, all devices found will be displayed. DISPLAYED FIELDS Unit The name of the device. Type Type of file system FFS = FastFileSystem OLD = OldFileSystem Size Total size. Under 10 meg is shown in KiloBytes Over 10 meg is shown in MegaBytes Used Amount of space used, shown as for 'Size'. Free Amount of space free, shown as for 'Size'. Max-File The maximum size file that will fit, shown in bytes. Full A percentage of the amount of space used. Errs Total number of software errors. Stat The status of the disk. R/W = Read/Write Read = Read Only VAL = Validating Name The volume name of this disk. NOTE ON FREE SPACE There can be times where a disk may have 1K free. AmigaDOS will not allow a file to be written to a disk that has two remaining blocks free. These two blocks could allow a file of 488 bytes for the old file system or 512 bytes for fast file system to be written, but I beleive that it may be a bug in AmigaDOS that prevents this. The only other explanation is that AmigaDOS may always require one free block, if this is so I have no idea why! IInfo has been coded to take this into account. Therefore if a disk has two or less remaining free blocks, Max-File will show zero. VOLUMES AVAILABLE I have not implemented this function seperately as the DOS 'Info' does. I consider it to be redundant as mounted volumes and the volume names are already displayed in the main listing. The 'Info' command will display volume names that are still open by the system if the disk has been ejected, but I do not consider this information needed or useful. TRADEMARKS AND COPYRIGHTS Amiga and AmigaDOS are trademarks of Commodore Amiga Inc. Macro68 is a trademark of DigiSoft.