From: KurtB02@aol.com Newsgroups: comp.binaries.cbm Subject: [DOS] ARCFIX.EXE (72K) ****************************************************** *** *** *** comp.binaries.cbm is a moderated binaries- *** *** only newsgroup (no discussion or *** *** crossposting allowed) for Commodore 8-bits *** *** *** *** For information on comp.binaries.cbm visit *** *** http://stockholm.ptloma.edu/comp.binaries.cbm/ *** *** *** *** This file is also available via FTP from *** *** ftp://videocam.net.au/cbm/incoming *** *** (allow time for submission to be received) *** *** *** ****************************************************** [Moderator's note: Upon testing this program I found that it likes vanilla DOS best, so don't run it in a DOS-box. Moreover, it seems to know only drive C:, no matter from which drive you run it.] >From time to time I have wanted/needed to extract single files from an ARC or SDA file on my PC, without extracting the others. I have also encountered what was probably Xmodem padding in the middle of an archive, which makes it impossible to extract from the archive anything that follows. So I wrote this utility to do either or both. When you open an ARC or SDA file with this utility, the entries within in it are displayed one per line. The SDA machine-language header, if present, is skipped. A movable pointer, controlled by the cursor keys, can be positioned at any of the entries, and the selection of that entry can be toggled with the key. When all desired entries have been selected, an ARC or SDA file can be written to disk with the appropriate function key. As an example...my most recent upload of Commodore Educational Software, SCIENCE3.SDA, had the following directory: Directory for: science3.sda ================================================== FILENAME TYPE BLKS NOW V STOWAGE DATE ================================================== sda232.64 p 9 --- - -------- charge.c3 p 36 27 2 crunched 01jan1980 chemist quiz.c3 p 39 30 2 crunched 01jan1980 chemist.c3 p 37 26 2 crunched 01jan1980 circuits.c3 p 63 46 2 crunched 01jan1980 ================================================== Files: 4 175 The display that ARFIX provided for it looked like this: F1 - Open File Cursor up/down - Move Marker F2 - Write ARC file RETURN - Mark/Unmark F3 - Write SDA file F10 - View Help F4 - Exit Program Blocks Selected: 0 ---------------------------------------------------------------------- Name Start End > charge.c3 2287 9144 chemist quiz.c3 9145 16764 chemist.c3 16765 23368 circuits.c3 23369 35052 End of File 35052 The starting offset here is 2287 because the 9-block SDA header was skipped (an ARC file would normally begin with an offset of 1). The selection cursor is on "charge.c3". The utility is written in QuickBasic 1.0 and will run in either DOS or Windows (3.1 anyway...I don't have 95). It has one known bug: it crashes if it encounters a one-pass-crunched file. Hope you find it useful. Kurt