From the QL Library

See all articles from Sinc-Link v8 n6
Author(s): Real Gagnon
Publication: Sinc-Link
Pub Details: Sinc-Link v8 n6 (Volume 8, Issue 6)
Date: November/December 1990
Pages: 8

There are many wonderful little things in our QL Library, and few are aware that they are there. Here is one of those gems, complete with the doc file which goes with it.

Hugh Howie.

“DISK_RE_NAME” by Real Gagnon.

CHANGING THE NAME OF A DISK.

When you format a new disk, you can assign a name to the disk. But it is impossible to change this name after the disk has been formatted unless you reformat the disk and all the data on this disk will be lost.

The following program will correct this situation. You can now rename a disk without having to reformat this disk.

When you run the program, you will be asked for the number of the disk drive (e.g. 1 or 2 ).” This program will only work with disk “” floppies “” and you can not rename microdrive. ” The program will then display the name of the disk and will ask you for the proposed name The limit is 10 characters.

100 REMark Disk_RE_Name
110 REMark by Real Gagnon
120 :
130 REPeat loop
140 PRINT #0,"Disk Drive Number :- "!;
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.