Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !DemConfig/!Run

!DemConfig/!Run

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 » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !DemConfig/!Run
Read OK:
File size: 0255 bytes
Load address: 0000
Exec address: 0000
File contents
Set DemConfig$Dir <Obey$Dir>

| Get the name of the parent directory
SetEval temp DemConfig$Dir RIGHT 10
If temp LEFT 1 <> "!" then error !DemConfig application name has changed
SetEval temp LEN DemConfig$Dir - 11
SetEval Internet$Dir DemConfig$Dir LEFT temp

| Check presence of apps to be configured (get error if not present)
Cat <Internet$Dir>.!TCPIP     { > null: }
Cat <Internet$Dir>.!TCPIPUser { > null: }
Cat <Internet$Dir>.!NewsBase  { > null: }
Cat <Internet$Dir>.!TTFN      { > null: }
Cat <Internet$Dir>.!SLIPdial  { > null: }

WimpSlot -min 96k -max 96k
Run <DemConfig$Dir>.!RunImage
00000000  53 65 74 20 44 65 6d 43  6f 6e 66 69 67 24 44 69  |Set DemConfig$Di|
00000010  72 20 3c 4f 62 65 79 24  44 69 72 3e 0a 0a 7c 20  |r <Obey$Dir>..| |
00000020  47 65 74 20 74 68 65 20  6e 61 6d 65 20 6f 66 20  |Get the name of |
00000030  74 68 65 20 70 61 72 65  6e 74 20 64 69 72 65 63  |the parent direc|
00000040  74 6f 72 79 0a 53 65 74  45 76 61 6c 20 74 65 6d  |tory.SetEval tem|
00000050  70 20 44 65 6d 43 6f 6e  66 69 67 24 44 69 72 20  |p DemConfig$Dir |
00000060  52 49 47 48 54 20 31 30  0a 49 66 20 74 65 6d 70  |RIGHT 10.If temp|
00000070  20 4c 45 46 54 20 31 20  3c 3e 20 22 21 22 20 74  | LEFT 1 <> "!" t|
00000080  68 65 6e 20 65 72 72 6f  72 20 21 44 65 6d 43 6f  |hen error !DemCo|
00000090  6e 66 69 67 20 61 70 70  6c 69 63 61 74 69 6f 6e  |nfig application|
000000a0  20 6e 61 6d 65 20 68 61  73 20 63 68 61 6e 67 65  | name has change|
000000b0  64 0a 53 65 74 45 76 61  6c 20 74 65 6d 70 20 4c  |d.SetEval temp L|
000000c0  45 4e 20 44 65 6d 43 6f  6e 66 69 67 24 44 69 72  |EN DemConfig$Dir|
000000d0  20 2d 20 31 31 0a 53 65  74 45 76 61 6c 20 49 6e  | - 11.SetEval In|
000000e0  74 65 72 6e 65 74 24 44  69 72 20 44 65 6d 43 6f  |ternet$Dir DemCo|
000000f0  6e 66 69 67 24 44 69 72  20 4c 45 46 54 20 74 65  |nfig$Dir LEFT te|
00000100  6d 70 0a 0a 7c 20 43 68  65 63 6b 20 70 72 65 73  |mp..| Check pres|
00000110  65 6e 63 65 20 6f 66 20  61 70 70 73 20 74 6f 20  |ence of apps to |
00000120  62 65 20 63 6f 6e 66 69  67 75 72 65 64 20 28 67  |be configured (g|
00000130  65 74 20 65 72 72 6f 72  20 69 66 20 6e 6f 74 20  |et error if not |
00000140  70 72 65 73 65 6e 74 29  0a 43 61 74 20 3c 49 6e  |present).Cat <In|
00000150  74 65 72 6e 65 74 24 44  69 72 3e 2e 21 54 43 50  |ternet$Dir>.!TCP|
00000160  49 50 20 20 20 20 20 7b  20 3e 20 6e 75 6c 6c 3a  |IP     { > null:|
00000170  20 7d 0a 43 61 74 20 3c  49 6e 74 65 72 6e 65 74  | }.Cat <Internet|
00000180  24 44 69 72 3e 2e 21 54  43 50 49 50 55 73 65 72  |$Dir>.!TCPIPUser|
00000190  20 7b 20 3e 20 6e 75 6c  6c 3a 20 7d 0a 43 61 74  | { > null: }.Cat|
000001a0  20 3c 49 6e 74 65 72 6e  65 74 24 44 69 72 3e 2e  | <Internet$Dir>.|
000001b0  21 4e 65 77 73 42 61 73  65 20 20 7b 20 3e 20 6e  |!NewsBase  { > n|
000001c0  75 6c 6c 3a 20 7d 0a 43  61 74 20 3c 49 6e 74 65  |ull: }.Cat <Inte|
000001d0  72 6e 65 74 24 44 69 72  3e 2e 21 54 54 46 4e 20  |rnet$Dir>.!TTFN |
000001e0  20 20 20 20 20 7b 20 3e  20 6e 75 6c 6c 3a 20 7d  |     { > null: }|
000001f0  0a 43 61 74 20 3c 49 6e  74 65 72 6e 65 74 24 44  |.Cat <Internet$D|
00000200  69 72 3e 2e 21 53 4c 49  50 64 69 61 6c 20 20 7b  |ir>.!SLIPdial  {|
00000210  20 3e 20 6e 75 6c 6c 3a  20 7d 0a 0a 57 69 6d 70  | > null: }..Wimp|
00000220  53 6c 6f 74 20 2d 6d 69  6e 20 39 36 6b 20 2d 6d  |Slot -min 96k -m|
00000230  61 78 20 39 36 6b 0a 52  75 6e 20 3c 44 65 6d 43  |ax 96k.Run <DemC|
00000240  6f 6e 66 69 67 24 44 69  72 3e 2e 21 52 75 6e 49  |onfig$Dir>.!RunI|
00000250  6d 61 67 65 0a                                    |mage.|
00000255