When you format a new disk, you can assign a name to the disk. But it is impossible to change that 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 ( by Real Gagnon of QL_DOC ) will correct this situation. You can now rename a disk without having to reformat the disk.
When you run the program, you will be asked for the number of the disk drive ( e.g. 1 , 2 , 3 or 4 ) . This program will only work with disk “” floppies “” and you cannot rename microdrives. The program will then display the name of the disk and will ask you for the proposed name. The limit is 10 characters.
As usual a copy of the program will be available from the librarian H. Howie.
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
Media
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.