| !Run for HardBack (Backup) last updated at v1.625 (12 Dec 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 module
Set HB$OK 1
RMEnsure MessageTrans 0.00 Set HB$OK 0
If "<System$Path>"="" AND "<HB$OK>"="0" AND "<RiscOS$V>"<300 Then Error "Open a directory containing !System."
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"