--- title: "Disk_RE_Name" id: 77388 type: "computer_media" slug: "disk_re_name" url: "http://localhost/computer_media/disk_re_name/" markdown_url: "http://localhost/computer_media/disk_re_name.md" published_at: "2026-11-15T18:38:39+00:00" modified_at: "2026-11-22T09:55:54+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Changes the name of a QL floppy disk without reformatting it." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Real Gagnon" slug: "real-gagnon" taxonomy: "indiv" url: "http://localhost/indiv/real-gagnon/" genre: - name: "Disk Drive Systems" slug: "disk-drive-systems" taxonomy: "genre" url: "http://localhost/type/disk-drive-systems/" media_type: "Diskette" programmers: - name: "Real Gagnon" slug: "real-gagnon" taxonomy: "indiv" url: "http://localhost/indiv/real-gagnon/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Disk_RE_Name%20%281990%29%28Gagnon%2C%20Real%29%28Sinclair%20QL%29%28CA%29%28Program%29.zip" mediadate: "1990" article_media: - id: 23486 title: "Changing the Name of a Disk" type: "article" url: "http://localhost/article/changing-the-name-of-a-disk/" - id: 23381 title: "From the QL Library" type: "article" url: "http://localhost/article/from-the-ql-library/" related_content: - id: 77610 title: "Disk_rename" type: "computer_media" url: "http://localhost/computer_media/disk_rename/" - id: 77611 title: "Disk_rename2" type: "computer_media" url: "http://localhost/computer_media/disk_rename2/" media_type_tags: "Disk Drive Systems" license: false --- # Disk_RE_Name 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](https://timexsinclair.com/article/changing-the-name-of-a-disk/)). ## 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 ```