Changes the name of a QL double-density disk in flp1_ without reformatting it. It reads sector 1 of track 0 directly (flp1_*d2d), shows the old name (characters 5 to 14) and writes the new one back; press ENTER to keep the old name. It uses Toolkit II.
This is Howard Clase’s own routine, which he extended as Disk_rename2.
Published in Sinc-Link November-December 1993 (Howard Clase plays with Disks).
Source Code
5 nm$= "Disk_rename"
10 REMark h.j.c. 1993.6.25 version 0.9
15 REMark N.B. Uses TK II
20 Rename_disk: Finish: STOP
100 REMark ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 DEFine PROCedure Rename_disk
110 CLS: FLP_SEC 2: a$="": n$=""
115 OPEN#3,'flp1_*d2d': GET#3\1,a$
120 PRINT "Old name = ":a$(5 TO 14)
125 INPUT "New name (ENTER to keep old) = "!n$
130 IF n$<>"": a$(5 TO 14) = n$: PUT#3\1,a$
135 END DEFine
200 REMark ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205 DEFine PROCedure Finish
210 CLOSE: WHEN ERRor :REPORT
215 END DEFineNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.