Home » Archimedes archive » Archimedes World » AW-1993-11.adf » AWNov93 » !AWNov93/Goodies/RISC_OS/Examples/Example_A

!AWNov93/Goodies/RISC_OS/Examples/Example_A

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 » Archimedes World » AW-1993-11.adf » AWNov93
Filename: !AWNov93/Goodies/RISC_OS/Examples/Example_A
Read OK:
File size: 01B0 bytes
Load address: 0000
Exec address: 0000
File contents
|  Archimedes World Guide to RISCOS_CLI      "VARIABLES"

|  Program : Example 10
   
|  Purpose : Illustrates the use of |m to separate commands in Aliases
|
|            N.B. vertical slash indicates a comment (like "REM" in BASIC)
 



Echo
Echo *Set Alias$@RunType_000 Echo The pathname of this file is |m Echo %%0
Echo 
Echo Now double click file File_000
*Set Alias$@RunType_000 Echo The pathname of this file is |m Echo %%0

00000000  7c 20 20 41 72 63 68 69  6d 65 64 65 73 20 57 6f  ||  Archimedes Wo|
00000010  72 6c 64 20 47 75 69 64  65 20 74 6f 20 52 49 53  |rld Guide to RIS|
00000020  43 4f 53 5f 43 4c 49 20  20 20 20 20 20 22 56 41  |COS_CLI      "VA|
00000030  52 49 41 42 4c 45 53 22  0a 0a 7c 20 20 50 72 6f  |RIABLES"..|  Pro|
00000040  67 72 61 6d 20 3a 20 45  78 61 6d 70 6c 65 20 31  |gram : Example 1|
00000050  30 0a 20 20 20 0a 7c 20  20 50 75 72 70 6f 73 65  |0.   .|  Purpose|
00000060  20 3a 20 49 6c 6c 75 73  74 72 61 74 65 73 20 74  | : Illustrates t|
00000070  68 65 20 75 73 65 20 6f  66 20 7c 6d 20 74 6f 20  |he use of |m to |
00000080  73 65 70 61 72 61 74 65  20 63 6f 6d 6d 61 6e 64  |separate command|
00000090  73 20 69 6e 20 41 6c 69  61 73 65 73 0a 7c 0a 7c  |s in Aliases.|.||
000000a0  20 20 20 20 20 20 20 20  20 20 20 20 4e 2e 42 2e  |            N.B.|
000000b0  20 76 65 72 74 69 63 61  6c 20 73 6c 61 73 68 20  | vertical slash |
000000c0  69 6e 64 69 63 61 74 65  73 20 61 20 63 6f 6d 6d  |indicates a comm|
000000d0  65 6e 74 20 28 6c 69 6b  65 20 22 52 45 4d 22 20  |ent (like "REM" |
000000e0  69 6e 20 42 41 53 49 43  29 0a 20 0a 0a 0a 0a 45  |in BASIC). ....E|
000000f0  63 68 6f 0a 45 63 68 6f  20 2a 53 65 74 20 41 6c  |cho.Echo *Set Al|
00000100  69 61 73 24 40 52 75 6e  54 79 70 65 5f 30 30 30  |ias$@RunType_000|
00000110  20 45 63 68 6f 20 54 68  65 20 70 61 74 68 6e 61  | Echo The pathna|
00000120  6d 65 20 6f 66 20 74 68  69 73 20 66 69 6c 65 20  |me of this file |
00000130  69 73 20 7c 6d 20 45 63  68 6f 20 25 25 30 0a 45  |is |m Echo %%0.E|
00000140  63 68 6f 20 0a 45 63 68  6f 20 4e 6f 77 20 64 6f  |cho .Echo Now do|
00000150  75 62 6c 65 20 63 6c 69  63 6b 20 66 69 6c 65 20  |uble click file |
00000160  46 69 6c 65 5f 30 30 30  0a 2a 53 65 74 20 41 6c  |File_000.*Set Al|
00000170  69 61 73 24 40 52 75 6e  54 79 70 65 5f 30 30 30  |ias$@RunType_000|
00000180  20 45 63 68 6f 20 54 68  65 20 70 61 74 68 6e 61  | Echo The pathna|
00000190  6d 65 20 6f 66 20 74 68  69 73 20 66 69 6c 65 20  |me of this file |
000001a0  69 73 20 7c 6d 20 45 63  68 6f 20 25 25 30 0a 0a  |is |m Echo %%0..|
000001b0