Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip » Routines/sfx

Routines/sfx

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip
Filename: Routines/sfx
Read OK:
File size: 0157 bytes
Load address: 0000
Exec address: 0000
File contents
| Harriet Bazley 19th January 2003
| sfx <inputfiledir> <zipleafname> <outputfiledir>
If "%1"="unzipsfx" Then Error "unzipsfx cannot make itself self-extracting" 
Copy Infozip:unzipsfx %2.unzipsfx A~C~D~F~L~N~R~S~T~V
Print %0.%1 { >> %2.unzipsfx }
Wipe %0.%1 ~F~C~V
Rename %2.unzipsfx %2.%1
zip -A %2.%1
SetType %2.%1 Absolute
unzip -tq %2.%1
00000000  7c 20 48 61 72 72 69 65  74 20 42 61 7a 6c 65 79  || Harriet Bazley|
00000010  20 31 39 74 68 20 4a 61  6e 75 61 72 79 20 32 30  | 19th January 20|
00000020  30 33 0a 7c 20 73 66 78  20 3c 69 6e 70 75 74 66  |03.| sfx <inputf|
00000030  69 6c 65 64 69 72 3e 20  3c 7a 69 70 6c 65 61 66  |iledir> <zipleaf|
00000040  6e 61 6d 65 3e 20 3c 6f  75 74 70 75 74 66 69 6c  |name> <outputfil|
00000050  65 64 69 72 3e 0a 49 66  20 22 25 31 22 3d 22 75  |edir>.If "%1"="u|
00000060  6e 7a 69 70 73 66 78 22  20 54 68 65 6e 20 45 72  |nzipsfx" Then Er|
00000070  72 6f 72 20 22 75 6e 7a  69 70 73 66 78 20 63 61  |ror "unzipsfx ca|
00000080  6e 6e 6f 74 20 6d 61 6b  65 20 69 74 73 65 6c 66  |nnot make itself|
00000090  20 73 65 6c 66 2d 65 78  74 72 61 63 74 69 6e 67  | self-extracting|
000000a0  22 20 0a 43 6f 70 79 20  49 6e 66 6f 7a 69 70 3a  |" .Copy Infozip:|
000000b0  75 6e 7a 69 70 73 66 78  20 25 32 2e 75 6e 7a 69  |unzipsfx %2.unzi|
000000c0  70 73 66 78 20 41 7e 43  7e 44 7e 46 7e 4c 7e 4e  |psfx A~C~D~F~L~N|
000000d0  7e 52 7e 53 7e 54 7e 56  0a 50 72 69 6e 74 20 25  |~R~S~T~V.Print %|
000000e0  30 2e 25 31 20 7b 20 3e  3e 20 25 32 2e 75 6e 7a  |0.%1 { >> %2.unz|
000000f0  69 70 73 66 78 20 7d 0a  57 69 70 65 20 25 30 2e  |ipsfx }.Wipe %0.|
00000100  25 31 20 7e 46 7e 43 7e  56 0a 52 65 6e 61 6d 65  |%1 ~F~C~V.Rename|
00000110  20 25 32 2e 75 6e 7a 69  70 73 66 78 20 25 32 2e  | %2.unzipsfx %2.|
00000120  25 31 0a 7a 69 70 20 2d  41 20 25 32 2e 25 31 0a  |%1.zip -A %2.%1.|
00000130  53 65 74 54 79 70 65 20  25 32 2e 25 31 20 41 62  |SetType %2.%1 Ab|
00000140  73 6f 6c 75 74 65 0a 75  6e 7a 69 70 20 2d 74 71  |solute.unzip -tq|
00000150  20 25 32 2e 25 31 0a                              | %2.%1.|
00000157