Disk_RE_Name

Developer(s): Real Gagnon
Date: 1990
Type: Diskette
Platform(s): QL

Renames a QL floppy disk without reformatting it. Give the drive number; the program reads sector 0 directly (flpN_*D2D), shows the present name and writes the new one (up to 10 characters) back. Floppies only, not Microdrives.

Submitted by Louis Laferriere from the Quebec newsletter QL_DOC. Hugh Howie printed it again from the club QL Library in November-December 1990 with a longer drive prompt. Line 200 shows characters 5 to 14 of the sector but line 220 writes the new name into 5 to 15; both printings have this. Try it on a copy of a disk first.

Published in Sinc-Link March-April 1990 (Changing the Name of a Disk).

Related Articles

When you format a new disk, you can assign a name to the disk.
There are many wonderful little things in our QL Library, and few are aware that they are there.

Related Content

Source Code

100 REMark Disk_RE_Name
110 REMark by Real Gagnon
120 :
130 REPeat loop
140 PRINT #0,"Disk #. "!;
145 d$=INKEY$(-1)
150 IF d$ INSTR '123456789':PRINT #0,d$: EXIT loop
160 END REPeat loop
165 :
170 OPEN#10,"flp"&d$&"_*D2D"
180 :
190 GET#10\1,a$
200 PRINT#0,"Present name  :"!a$(5 TO 14)
210 INPUT#0,"New name      :"!n$
220 LET a$(5 TO 15)=n$
230 PUT#10\1,a$
240 :
250 CLOSE#10

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.