Home » Archimedes archive » Archimedes World » archimedes_world_volume_15_issue_1_scp.adf » !TempDir_TempDir » !TempDir/!Run
!TempDir/!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 » archimedes_world_volume_15_issue_1_scp.adf » !TempDir_TempDir |
Filename: | !TempDir/!Run |
Read OK: | ✔ |
File size: | 03B9 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
| Tempdir V1.17 2/10/97 Set tempdir$dir <obey$dir> IconSprites <tempdir$Dir>.!Sprites IF "<Wimp$ScrapDir>" = "" THEN ERROR 0 This program needs to have seen the !Scrap application first in order to work. IF "<Boot$Dir>" = "" THEN Set root$path <Wimp$ScrapDir> ELSE Set root$path <Boot$Dir> |This sets the maximum age of the directorys before they are deleted Set tempdir%days 40 |This is the path were the root of the TempDir directory will lie. Setmacro TempDir$ <root$path>.^.Tempdir |When set to > 0 the ADJUST mouse button will open all dated directories |within the 'Tempdir' directory instead of closing todays directory. Set TempDirOpenall 0 | Note for Network use: if it can't write to the above path | then <Wimp$ScrapDir> will be used automatically on startup. Run <tempdir$dir>.OSVer IF "<RiscOS$Version>" < "310" THEN ERROR 0 This program only runs under RISC OS 3.1 or above. Wimpslot -min 24K -max 24K Run <tempdir$dir>.!Runimage
00000000 7c 20 54 65 6d 70 64 69 72 20 56 31 2e 31 37 20 || Tempdir V1.17 | 00000010 32 2f 31 30 2f 39 37 0a 53 65 74 20 74 65 6d 70 |2/10/97.Set temp| 00000020 64 69 72 24 64 69 72 20 3c 6f 62 65 79 24 64 69 |dir$dir <obey$di| 00000030 72 3e 0a 49 63 6f 6e 53 70 72 69 74 65 73 20 3c |r>.IconSprites <| 00000040 74 65 6d 70 64 69 72 24 44 69 72 3e 2e 21 53 70 |tempdir$Dir>.!Sp| 00000050 72 69 74 65 73 0a 0a 49 46 20 22 3c 57 69 6d 70 |rites..IF "<Wimp| 00000060 24 53 63 72 61 70 44 69 72 3e 22 20 3d 20 22 22 |$ScrapDir>" = ""| 00000070 20 54 48 45 4e 20 45 52 52 4f 52 20 30 20 54 68 | THEN ERROR 0 Th| 00000080 69 73 20 70 72 6f 67 72 61 6d 20 6e 65 65 64 73 |is program needs| 00000090 20 74 6f 20 68 61 76 65 20 73 65 65 6e 20 74 68 | to have seen th| 000000a0 65 20 21 53 63 72 61 70 20 61 70 70 6c 69 63 61 |e !Scrap applica| 000000b0 74 69 6f 6e 20 66 69 72 73 74 20 69 6e 20 6f 72 |tion first in or| 000000c0 64 65 72 20 74 6f 20 77 6f 72 6b 2e 0a 0a 49 46 |der to work...IF| 000000d0 20 22 3c 42 6f 6f 74 24 44 69 72 3e 22 20 3d 20 | "<Boot$Dir>" = | 000000e0 22 22 20 54 48 45 4e 20 53 65 74 20 72 6f 6f 74 |"" THEN Set root| 000000f0 24 70 61 74 68 20 3c 57 69 6d 70 24 53 63 72 61 |$path <Wimp$Scra| 00000100 70 44 69 72 3e 20 45 4c 53 45 20 53 65 74 20 72 |pDir> ELSE Set r| 00000110 6f 6f 74 24 70 61 74 68 20 3c 42 6f 6f 74 24 44 |oot$path <Boot$D| 00000120 69 72 3e 0a 0a 7c 54 68 69 73 20 73 65 74 73 20 |ir>..|This sets | 00000130 74 68 65 20 6d 61 78 69 6d 75 6d 20 61 67 65 20 |the maximum age | 00000140 6f 66 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 |of the directory| 00000150 73 20 62 65 66 6f 72 65 20 74 68 65 79 20 61 72 |s before they ar| 00000160 65 20 64 65 6c 65 74 65 64 0a 53 65 74 20 74 65 |e deleted.Set te| 00000170 6d 70 64 69 72 25 64 61 79 73 20 34 30 0a 0a 7c |mpdir%days 40..|| 00000180 54 68 69 73 20 69 73 20 74 68 65 20 70 61 74 68 |This is the path| 00000190 20 77 65 72 65 20 74 68 65 20 72 6f 6f 74 20 6f | were the root o| 000001a0 66 20 74 68 65 20 54 65 6d 70 44 69 72 20 64 69 |f the TempDir di| 000001b0 72 65 63 74 6f 72 79 20 77 69 6c 6c 20 6c 69 65 |rectory will lie| 000001c0 2e 0a 53 65 74 6d 61 63 72 6f 20 54 65 6d 70 44 |..Setmacro TempD| 000001d0 69 72 24 20 3c 72 6f 6f 74 24 70 61 74 68 3e 2e |ir$ <root$path>.| 000001e0 5e 2e 54 65 6d 70 64 69 72 0a 0a 7c 57 68 65 6e |^.Tempdir..|When| 000001f0 20 73 65 74 20 74 6f 20 3e 20 30 20 74 68 65 20 | set to > 0 the | 00000200 41 44 4a 55 53 54 20 6d 6f 75 73 65 20 62 75 74 |ADJUST mouse but| 00000210 74 6f 6e 20 77 69 6c 6c 20 6f 70 65 6e 20 61 6c |ton will open al| 00000220 6c 20 64 61 74 65 64 20 64 69 72 65 63 74 6f 72 |l dated director| 00000230 69 65 73 0a 7c 77 69 74 68 69 6e 20 74 68 65 20 |ies.|within the | 00000240 27 54 65 6d 70 64 69 72 27 20 64 69 72 65 63 74 |'Tempdir' direct| 00000250 6f 72 79 20 69 6e 73 74 65 61 64 20 6f 66 20 63 |ory instead of c| 00000260 6c 6f 73 69 6e 67 20 74 6f 64 61 79 73 20 64 69 |losing todays di| 00000270 72 65 63 74 6f 72 79 2e 20 0a 53 65 74 20 54 65 |rectory. .Set Te| 00000280 6d 70 44 69 72 4f 70 65 6e 61 6c 6c 20 30 0a 0a |mpDirOpenall 0..| 00000290 7c 20 4e 6f 74 65 20 66 6f 72 20 4e 65 74 77 6f || Note for Netwo| 000002a0 72 6b 20 75 73 65 3a 20 69 66 20 69 74 20 63 61 |rk use: if it ca| 000002b0 6e 27 74 20 77 72 69 74 65 20 74 6f 20 74 68 65 |n't write to the| 000002c0 20 61 62 6f 76 65 20 70 61 74 68 0a 7c 20 74 68 | above path.| th| 000002d0 65 6e 20 3c 57 69 6d 70 24 53 63 72 61 70 44 69 |en <Wimp$ScrapDi| 000002e0 72 3e 20 77 69 6c 6c 20 62 65 20 75 73 65 64 20 |r> will be used | 000002f0 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 6f 6e |automatically on| 00000300 20 73 74 61 72 74 75 70 2e 0a 0a 52 75 6e 20 3c | startup...Run <| 00000310 74 65 6d 70 64 69 72 24 64 69 72 3e 2e 4f 53 56 |tempdir$dir>.OSV| 00000320 65 72 0a 49 46 20 22 3c 52 69 73 63 4f 53 24 56 |er.IF "<RiscOS$V| 00000330 65 72 73 69 6f 6e 3e 22 20 3c 20 22 33 31 30 22 |ersion>" < "310"| 00000340 20 54 48 45 4e 20 45 52 52 4f 52 20 30 20 54 68 | THEN ERROR 0 Th| 00000350 69 73 20 70 72 6f 67 72 61 6d 20 6f 6e 6c 79 20 |is program only | 00000360 72 75 6e 73 20 75 6e 64 65 72 20 52 49 53 43 20 |runs under RISC | 00000370 4f 53 20 33 2e 31 20 6f 72 20 61 62 6f 76 65 2e |OS 3.1 or above.| 00000380 0a 0a 57 69 6d 70 73 6c 6f 74 20 2d 6d 69 6e 20 |..Wimpslot -min | 00000390 32 34 4b 20 2d 6d 61 78 20 32 34 4b 0a 52 75 6e |24K -max 24K.Run| 000003a0 20 3c 74 65 6d 70 64 69 72 24 64 69 72 3e 2e 21 | <tempdir$dir>.!| 000003b0 52 75 6e 69 6d 61 67 65 0a |Runimage.| 000003b9