TWIX utility was created as example of usage of Extended TR-DOS commands of 'Sprinter ZX' mode.
By this way, you can create real batch file. This utility serves for quick creation of two TR-DOS RAM-disks.
Usage.
Execute TWIX.TRD and answer "Y" to program question.
Utility will create two RAM-disks ("G" and "H" RAM-disks on TR-DOS "C" and TR-DOS "D" drives), set a floppy disk drive to TR-DOS "A" drive and select TR-DOS "C" drive as current drive.
Finally, utility executes Spectrum file manager, which was included in the TWIX.TRD file too.
So, you will have two RAM-disks, working file manager and possibility to use real TR-DOS disks with 'A' drive.
Package of TWIX.TRD file :
boot.B - TWIX utility
fcom.B - F Commander v4.01m (c) Vadim Eremeev, 1993
boot.B:
1 REM Creating 'g'&'h' RAM-disks on 'C'&'D' drives
2 REM ------------------
3 BORDER 0: PAPER 0: INK 7: CLS
5 PRINT "Create RAM-disks on C&D drives?"
6 PRINT : PRINT " (y/n)"
10 PAUSE 10: IF INKEY$="y" OR INKEY$="Y" THEN GO TO 20
15 IF INKEY$="" THEN GO TO 10
16 GO TO 80
20 RANDOMIZE USR 15619: REM :/c: ; select TR-DOS 'C' drive as current drive
30 RANDOMIZE USR 15619: REM :/rmd g ; set 'G' RAM-disk to current drive
40 RANDOMIZE USR 15619: REM : FORMAT "G" 5 ; format 'G' RAM-disk as TR-DOS disk
50 RANDOMIZE USR 15619: REM :/d: ; select TR-DOS 'D' drive as current drive
60 RANDOMIZE USR 15619: REM :/rmd h ; set 'H' RAM-disk to current drive
70 RANDOMIZE USR 15619: REM : FORMAT "H" 5 ; format 'H' RAM-disk as TR-DOS disk
80 RANDOMIZE USR 15619: REM : COPY "c:*","a:*" ; copy all files from 'A' to 'C' drive
90 RANDOMIZE USR 15619: REM :/a: ; select TR-DOS 'A' drive as current drive
100 RANDOMIZE USR 15619: REM :/fdd ; set FDD to current drive (FDD First to A)
110 RANDOMIZE USR 15619: REM :/c: ; select TR-DOS 'C' drive as current drive
120 RANDOMIZE USR 15619: REM : RUN "fcom" ; execute 'fcom.B' from TR-DOS 'C' drive
---
PETERS PLUS LTDEdited by Alex_Goryachev on 2003/02/10 18:03.
|