Home » Archimedes archive » Archimedes World » AW-1996-03-Disc 2.adf » !HardBack_HardBack » !Backup/!Run

!Backup/!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 » Archimedes World » AW-1996-03-Disc 2.adf » !HardBack_HardBack
Filename: !Backup/!Run
Read OK:
File size: 0917 bytes
Load address: 0000
Exec address: 0000
File contents
| !Run for HardBack (Backup) last updated at v1.623 (17 Sep 95)

| To set the default file, set the variable HardBackD$Default to
| the name of a script file, similar to that shown below:
| Set HardBackD$Default adfs::HardDisc4.$.Utils.HardBack.Default
| This needn't be in this file, and the script file can be anywhere
| so it will work on read-only filing systems eg CD-Roms

Set HardBackD$Dir <Obey$Dir>
Obey <HardBackD$Dir>.!Boot

| This isn't strictly necessary, but it means FileEnsure works in a neat way
Set Run$PathTemp <Run$Path>
Set Run$Path <Run$Path>,<HardBackD$Dir>.

| This section sets the variable RiscOS$V to the version of Risc OS
SetEval RiscOS$V 500
|RMEnsure UtilityModule 5.00 SetEval RiscOS$V 400
RMEnsure UtilityModule 4.00 SetEval RiscOS$V 320
RMEnsure UtilityModule 3.20 SetEval RiscOS$V 300
RMEnsure UtilityModule 3.00 SetEval RiscOS$V 200
RMEnsure UtilityModule 2.00 SetEval RiscOS$V 120

| This section deals with checking for the MessageTrans and Squash modules
If "<System$Path>"="" AND "<RiscOS$V>"<300 Then Error "Open a directory containing !System."
|RMEnsure Squash 0.00 If "<RiscOS$V>">=300 then RMReInit Squash
|RMEnsure Squash 0.00 FileEnsure System:Modules.Squash "Error HardBack needs the Squash module. It should be in !System.Modules"
|RMEnsure Squash 0.00 RMLoad System:Modules.Squash
RMEnsure MessageTrans 0.00 If "<RiscOS$V>">=300 then RMReInit MessageTrans
RMEnsure MessageTrans 0.00 FileEnsure System:Modules.MsgTrans "Error HardBack needs the MessageTrans module. It should be in !System.Modules as MsgTrans"
RMEnsure MessageTrans 0.06 RMLoad System:Modules.MsgTrans
RMEnsure MessageTrans 0.06 Error HardBack needs MessageTrans version 0.06 or later.

If "<HardBackD$Default>"="" Then Set HardBackD$Default2 <HardBackD$Dir>.!Default Else Set HardBackD$Default2 <HardBackD$Default>


Set Run$Path <Run$PathTemp>
Unset Run$PathTemp

Wimpslot -min 100k -max 100k
Run <HardBackD$Dir>.StartUp %*0

| The value below is the amount of memory taken up by the program itself, plus internal workspace.
Wimpslot -min 172k -max 172K
| The value below is the total amount of memory in kilobytes initially taken
| by the program including file buffers - see the manual for details.
| It should not be less than the figure above
SetEval HardBackD$Slot 400

RUN <HardBackD$Dir>.!RunImage %*0
00000000  7c 20 21 52 75 6e 20 66  6f 72 20 48 61 72 64 42  || !Run for HardB|
00000010  61 63 6b 20 28 42 61 63  6b 75 70 29 20 6c 61 73  |ack (Backup) las|
00000020  74 20 75 70 64 61 74 65  64 20 61 74 20 76 31 2e  |t updated at v1.|
00000030  36 32 33 20 28 31 37 20  53 65 70 20 39 35 29 0a  |623 (17 Sep 95).|
00000040  0a 7c 20 54 6f 20 73 65  74 20 74 68 65 20 64 65  |.| To set the de|
00000050  66 61 75 6c 74 20 66 69  6c 65 2c 20 73 65 74 20  |fault file, set |
00000060  74 68 65 20 76 61 72 69  61 62 6c 65 20 48 61 72  |the variable Har|
00000070  64 42 61 63 6b 44 24 44  65 66 61 75 6c 74 20 74  |dBackD$Default t|
00000080  6f 0a 7c 20 74 68 65 20  6e 61 6d 65 20 6f 66 20  |o.| the name of |
00000090  61 20 73 63 72 69 70 74  20 66 69 6c 65 2c 20 73  |a script file, s|
000000a0  69 6d 69 6c 61 72 20 74  6f 20 74 68 61 74 20 73  |imilar to that s|
000000b0  68 6f 77 6e 20 62 65 6c  6f 77 3a 0a 7c 20 53 65  |hown below:.| Se|
000000c0  74 20 48 61 72 64 42 61  63 6b 44 24 44 65 66 61  |t HardBackD$Defa|
000000d0  75 6c 74 20 61 64 66 73  3a 3a 48 61 72 64 44 69  |ult adfs::HardDi|
000000e0  73 63 34 2e 24 2e 55 74  69 6c 73 2e 48 61 72 64  |sc4.$.Utils.Hard|
000000f0  42 61 63 6b 2e 44 65 66  61 75 6c 74 0a 7c 20 54  |Back.Default.| T|
00000100  68 69 73 20 6e 65 65 64  6e 27 74 20 62 65 20 69  |his needn't be i|
00000110  6e 20 74 68 69 73 20 66  69 6c 65 2c 20 61 6e 64  |n this file, and|
00000120  20 74 68 65 20 73 63 72  69 70 74 20 66 69 6c 65  | the script file|
00000130  20 63 61 6e 20 62 65 20  61 6e 79 77 68 65 72 65  | can be anywhere|
00000140  0a 7c 20 73 6f 20 69 74  20 77 69 6c 6c 20 77 6f  |.| so it will wo|
00000150  72 6b 20 6f 6e 20 72 65  61 64 2d 6f 6e 6c 79 20  |rk on read-only |
00000160  66 69 6c 69 6e 67 20 73  79 73 74 65 6d 73 20 65  |filing systems e|
00000170  67 20 43 44 2d 52 6f 6d  73 0a 0a 53 65 74 20 48  |g CD-Roms..Set H|
00000180  61 72 64 42 61 63 6b 44  24 44 69 72 20 3c 4f 62  |ardBackD$Dir <Ob|
00000190  65 79 24 44 69 72 3e 0a  4f 62 65 79 20 3c 48 61  |ey$Dir>.Obey <Ha|
000001a0  72 64 42 61 63 6b 44 24  44 69 72 3e 2e 21 42 6f  |rdBackD$Dir>.!Bo|
000001b0  6f 74 0a 0a 7c 20 54 68  69 73 20 69 73 6e 27 74  |ot..| This isn't|
000001c0  20 73 74 72 69 63 74 6c  79 20 6e 65 63 65 73 73  | strictly necess|
000001d0  61 72 79 2c 20 62 75 74  20 69 74 20 6d 65 61 6e  |ary, but it mean|
000001e0  73 20 46 69 6c 65 45 6e  73 75 72 65 20 77 6f 72  |s FileEnsure wor|
000001f0  6b 73 20 69 6e 20 61 20  6e 65 61 74 20 77 61 79  |ks in a neat way|
00000200  0a 53 65 74 20 52 75 6e  24 50 61 74 68 54 65 6d  |.Set Run$PathTem|
00000210  70 20 3c 52 75 6e 24 50  61 74 68 3e 0a 53 65 74  |p <Run$Path>.Set|
00000220  20 52 75 6e 24 50 61 74  68 20 3c 52 75 6e 24 50  | Run$Path <Run$P|
00000230  61 74 68 3e 2c 3c 48 61  72 64 42 61 63 6b 44 24  |ath>,<HardBackD$|
00000240  44 69 72 3e 2e 0a 0a 7c  20 54 68 69 73 20 73 65  |Dir>...| This se|
00000250  63 74 69 6f 6e 20 73 65  74 73 20 74 68 65 20 76  |ction sets the v|
00000260  61 72 69 61 62 6c 65 20  52 69 73 63 4f 53 24 56  |ariable RiscOS$V|
00000270  20 74 6f 20 74 68 65 20  76 65 72 73 69 6f 6e 20  | to the version |
00000280  6f 66 20 52 69 73 63 20  4f 53 0a 53 65 74 45 76  |of Risc OS.SetEv|
00000290  61 6c 20 52 69 73 63 4f  53 24 56 20 35 30 30 0a  |al RiscOS$V 500.|
000002a0  7c 52 4d 45 6e 73 75 72  65 20 55 74 69 6c 69 74  ||RMEnsure Utilit|
000002b0  79 4d 6f 64 75 6c 65 20  35 2e 30 30 20 53 65 74  |yModule 5.00 Set|
000002c0  45 76 61 6c 20 52 69 73  63 4f 53 24 56 20 34 30  |Eval RiscOS$V 40|
000002d0  30 0a 52 4d 45 6e 73 75  72 65 20 55 74 69 6c 69  |0.RMEnsure Utili|
000002e0  74 79 4d 6f 64 75 6c 65  20 34 2e 30 30 20 53 65  |tyModule 4.00 Se|
000002f0  74 45 76 61 6c 20 52 69  73 63 4f 53 24 56 20 33  |tEval RiscOS$V 3|
00000300  32 30 0a 52 4d 45 6e 73  75 72 65 20 55 74 69 6c  |20.RMEnsure Util|
00000310  69 74 79 4d 6f 64 75 6c  65 20 33 2e 32 30 20 53  |ityModule 3.20 S|
00000320  65 74 45 76 61 6c 20 52  69 73 63 4f 53 24 56 20  |etEval RiscOS$V |
00000330  33 30 30 0a 52 4d 45 6e  73 75 72 65 20 55 74 69  |300.RMEnsure Uti|
00000340  6c 69 74 79 4d 6f 64 75  6c 65 20 33 2e 30 30 20  |lityModule 3.00 |
00000350  53 65 74 45 76 61 6c 20  52 69 73 63 4f 53 24 56  |SetEval RiscOS$V|
00000360  20 32 30 30 0a 52 4d 45  6e 73 75 72 65 20 55 74  | 200.RMEnsure Ut|
00000370  69 6c 69 74 79 4d 6f 64  75 6c 65 20 32 2e 30 30  |ilityModule 2.00|
00000380  20 53 65 74 45 76 61 6c  20 52 69 73 63 4f 53 24  | SetEval RiscOS$|
00000390  56 20 31 32 30 0a 0a 7c  20 54 68 69 73 20 73 65  |V 120..| This se|
000003a0  63 74 69 6f 6e 20 64 65  61 6c 73 20 77 69 74 68  |ction deals with|
000003b0  20 63 68 65 63 6b 69 6e  67 20 66 6f 72 20 74 68  | checking for th|
000003c0  65 20 4d 65 73 73 61 67  65 54 72 61 6e 73 20 61  |e MessageTrans a|
000003d0  6e 64 20 53 71 75 61 73  68 20 6d 6f 64 75 6c 65  |nd Squash module|
000003e0  73 0a 49 66 20 22 3c 53  79 73 74 65 6d 24 50 61  |s.If "<System$Pa|
000003f0  74 68 3e 22 3d 22 22 20  41 4e 44 20 22 3c 52 69  |th>"="" AND "<Ri|
00000400  73 63 4f 53 24 56 3e 22  3c 33 30 30 20 54 68 65  |scOS$V>"<300 The|
00000410  6e 20 45 72 72 6f 72 20  22 4f 70 65 6e 20 61 20  |n Error "Open a |
00000420  64 69 72 65 63 74 6f 72  79 20 63 6f 6e 74 61 69  |directory contai|
00000430  6e 69 6e 67 20 21 53 79  73 74 65 6d 2e 22 0a 7c  |ning !System.".||
00000440  52 4d 45 6e 73 75 72 65  20 53 71 75 61 73 68 20  |RMEnsure Squash |
00000450  30 2e 30 30 20 49 66 20  22 3c 52 69 73 63 4f 53  |0.00 If "<RiscOS|
00000460  24 56 3e 22 3e 3d 33 30  30 20 74 68 65 6e 20 52  |$V>">=300 then R|
00000470  4d 52 65 49 6e 69 74 20  53 71 75 61 73 68 0a 7c  |MReInit Squash.||
00000480  52 4d 45 6e 73 75 72 65  20 53 71 75 61 73 68 20  |RMEnsure Squash |
00000490  30 2e 30 30 20 46 69 6c  65 45 6e 73 75 72 65 20  |0.00 FileEnsure |
000004a0  53 79 73 74 65 6d 3a 4d  6f 64 75 6c 65 73 2e 53  |System:Modules.S|
000004b0  71 75 61 73 68 20 22 45  72 72 6f 72 20 48 61 72  |quash "Error Har|
000004c0  64 42 61 63 6b 20 6e 65  65 64 73 20 74 68 65 20  |dBack needs the |
000004d0  53 71 75 61 73 68 20 6d  6f 64 75 6c 65 2e 20 49  |Squash module. I|
000004e0  74 20 73 68 6f 75 6c 64  20 62 65 20 69 6e 20 21  |t should be in !|
000004f0  53 79 73 74 65 6d 2e 4d  6f 64 75 6c 65 73 22 0a  |System.Modules".|
00000500  7c 52 4d 45 6e 73 75 72  65 20 53 71 75 61 73 68  ||RMEnsure Squash|
00000510  20 30 2e 30 30 20 52 4d  4c 6f 61 64 20 53 79 73  | 0.00 RMLoad Sys|
00000520  74 65 6d 3a 4d 6f 64 75  6c 65 73 2e 53 71 75 61  |tem:Modules.Squa|
00000530  73 68 0a 52 4d 45 6e 73  75 72 65 20 4d 65 73 73  |sh.RMEnsure Mess|
00000540  61 67 65 54 72 61 6e 73  20 30 2e 30 30 20 49 66  |ageTrans 0.00 If|
00000550  20 22 3c 52 69 73 63 4f  53 24 56 3e 22 3e 3d 33  | "<RiscOS$V>">=3|
00000560  30 30 20 74 68 65 6e 20  52 4d 52 65 49 6e 69 74  |00 then RMReInit|
00000570  20 4d 65 73 73 61 67 65  54 72 61 6e 73 0a 52 4d  | MessageTrans.RM|
00000580  45 6e 73 75 72 65 20 4d  65 73 73 61 67 65 54 72  |Ensure MessageTr|
00000590  61 6e 73 20 30 2e 30 30  20 46 69 6c 65 45 6e 73  |ans 0.00 FileEns|
000005a0  75 72 65 20 53 79 73 74  65 6d 3a 4d 6f 64 75 6c  |ure System:Modul|
000005b0  65 73 2e 4d 73 67 54 72  61 6e 73 20 22 45 72 72  |es.MsgTrans "Err|
000005c0  6f 72 20 48 61 72 64 42  61 63 6b 20 6e 65 65 64  |or HardBack need|
000005d0  73 20 74 68 65 20 4d 65  73 73 61 67 65 54 72 61  |s the MessageTra|
000005e0  6e 73 20 6d 6f 64 75 6c  65 2e 20 49 74 20 73 68  |ns module. It sh|
000005f0  6f 75 6c 64 20 62 65 20  69 6e 20 21 53 79 73 74  |ould be in !Syst|
00000600  65 6d 2e 4d 6f 64 75 6c  65 73 20 61 73 20 4d 73  |em.Modules as Ms|
00000610  67 54 72 61 6e 73 22 0a  52 4d 45 6e 73 75 72 65  |gTrans".RMEnsure|
00000620  20 4d 65 73 73 61 67 65  54 72 61 6e 73 20 30 2e  | MessageTrans 0.|
00000630  30 36 20 52 4d 4c 6f 61  64 20 53 79 73 74 65 6d  |06 RMLoad System|
00000640  3a 4d 6f 64 75 6c 65 73  2e 4d 73 67 54 72 61 6e  |:Modules.MsgTran|
00000650  73 0a 52 4d 45 6e 73 75  72 65 20 4d 65 73 73 61  |s.RMEnsure Messa|
00000660  67 65 54 72 61 6e 73 20  30 2e 30 36 20 45 72 72  |geTrans 0.06 Err|
00000670  6f 72 20 48 61 72 64 42  61 63 6b 20 6e 65 65 64  |or HardBack need|
00000680  73 20 4d 65 73 73 61 67  65 54 72 61 6e 73 20 76  |s MessageTrans v|
00000690  65 72 73 69 6f 6e 20 30  2e 30 36 20 6f 72 20 6c  |ersion 0.06 or l|
000006a0  61 74 65 72 2e 0a 0a 49  66 20 22 3c 48 61 72 64  |ater...If "<Hard|
000006b0  42 61 63 6b 44 24 44 65  66 61 75 6c 74 3e 22 3d  |BackD$Default>"=|
000006c0  22 22 20 54 68 65 6e 20  53 65 74 20 48 61 72 64  |"" Then Set Hard|
000006d0  42 61 63 6b 44 24 44 65  66 61 75 6c 74 32 20 3c  |BackD$Default2 <|
000006e0  48 61 72 64 42 61 63 6b  44 24 44 69 72 3e 2e 21  |HardBackD$Dir>.!|
000006f0  44 65 66 61 75 6c 74 20  45 6c 73 65 20 53 65 74  |Default Else Set|
00000700  20 48 61 72 64 42 61 63  6b 44 24 44 65 66 61 75  | HardBackD$Defau|
00000710  6c 74 32 20 3c 48 61 72  64 42 61 63 6b 44 24 44  |lt2 <HardBackD$D|
00000720  65 66 61 75 6c 74 3e 0a  0a 0a 53 65 74 20 52 75  |efault>...Set Ru|
00000730  6e 24 50 61 74 68 20 3c  52 75 6e 24 50 61 74 68  |n$Path <Run$Path|
00000740  54 65 6d 70 3e 0a 55 6e  73 65 74 20 52 75 6e 24  |Temp>.Unset Run$|
00000750  50 61 74 68 54 65 6d 70  0a 0a 57 69 6d 70 73 6c  |PathTemp..Wimpsl|
00000760  6f 74 20 2d 6d 69 6e 20  31 30 30 6b 20 2d 6d 61  |ot -min 100k -ma|
00000770  78 20 31 30 30 6b 0a 52  75 6e 20 3c 48 61 72 64  |x 100k.Run <Hard|
00000780  42 61 63 6b 44 24 44 69  72 3e 2e 53 74 61 72 74  |BackD$Dir>.Start|
00000790  55 70 20 25 2a 30 0a 0a  7c 20 54 68 65 20 76 61  |Up %*0..| The va|
000007a0  6c 75 65 20 62 65 6c 6f  77 20 69 73 20 74 68 65  |lue below is the|
000007b0  20 61 6d 6f 75 6e 74 20  6f 66 20 6d 65 6d 6f 72  | amount of memor|
000007c0  79 20 74 61 6b 65 6e 20  75 70 20 62 79 20 74 68  |y taken up by th|
000007d0  65 20 70 72 6f 67 72 61  6d 20 69 74 73 65 6c 66  |e program itself|
000007e0  2c 20 70 6c 75 73 20 69  6e 74 65 72 6e 61 6c 20  |, plus internal |
000007f0  77 6f 72 6b 73 70 61 63  65 2e 0a 57 69 6d 70 73  |workspace..Wimps|
00000800  6c 6f 74 20 2d 6d 69 6e  20 31 37 32 6b 20 2d 6d  |lot -min 172k -m|
00000810  61 78 20 31 37 32 4b 0a  7c 20 54 68 65 20 76 61  |ax 172K.| The va|
00000820  6c 75 65 20 62 65 6c 6f  77 20 69 73 20 74 68 65  |lue below is the|
00000830  20 74 6f 74 61 6c 20 61  6d 6f 75 6e 74 20 6f 66  | total amount of|
00000840  20 6d 65 6d 6f 72 79 20  69 6e 20 6b 69 6c 6f 62  | memory in kilob|
00000850  79 74 65 73 20 69 6e 69  74 69 61 6c 6c 79 20 74  |ytes initially t|
00000860  61 6b 65 6e 0a 7c 20 62  79 20 74 68 65 20 70 72  |aken.| by the pr|
00000870  6f 67 72 61 6d 20 69 6e  63 6c 75 64 69 6e 67 20  |ogram including |
00000880  66 69 6c 65 20 62 75 66  66 65 72 73 20 2d 20 73  |file buffers - s|
00000890  65 65 20 74 68 65 20 6d  61 6e 75 61 6c 20 66 6f  |ee the manual fo|
000008a0  72 20 64 65 74 61 69 6c  73 2e 0a 7c 20 49 74 20  |r details..| It |
000008b0  73 68 6f 75 6c 64 20 6e  6f 74 20 62 65 20 6c 65  |should not be le|
000008c0  73 73 20 74 68 61 6e 20  74 68 65 20 66 69 67 75  |ss than the figu|
000008d0  72 65 20 61 62 6f 76 65  0a 53 65 74 45 76 61 6c  |re above.SetEval|
000008e0  20 48 61 72 64 42 61 63  6b 44 24 53 6c 6f 74 20  | HardBackD$Slot |
000008f0  34 30 30 0a 0a 52 55 4e  20 3c 48 61 72 64 42 61  |400..RUN <HardBa|
00000900  63 6b 44 24 44 69 72 3e  2e 21 52 75 6e 49 6d 61  |ckD$Dir>.!RunIma|
00000910  67 65 20 25 2a 30 0a                              |ge %*0.|
00000917