Came across a situation which many before have probably experienced, where in saving a file somehow an illicit or incorrect character has managed to get into the middle of the title, (leaving a square hash-mark where the character was inserted) with the result that it is impossible to load that file back as you cannot duplicate the error typed in.
When this happened to me last night I recollected writing about how to remove a prefix from a string of titles, and do it quickly, by using the COPY command from TK2. So I tried it.
I w_copied the unloadable file to a disc where that was the only file on that disc. This was to ensure that anything going wrong would not corrupt the whole disc.
When I had the offending file on this disc, it looked like this:- JACKSON§_T87. (where ‘§’ is the illicit character) I placed this disc in flp1_ and typed in this command:-
WCOPY _T87, JACKSON_T87
And the file now had the title JACKSON_T87 and I was able to load it.
Another way to do this is with the “DIR_EDIT_BAS” program from the QL library. This program can be quicker, or slower, than the TK2 command, it all depends on the amount and types of changes to the titles which are required. Both methods have their place in your system.
If it is a matter of removing the same character or string from a number of programs at the same time, the TK2 method is best. But if a variety of changes are required the DIR_EDIT_BAS method is better.
It would be a good idea if you were to try both methods before you really have to. Try them both to-day, at your leisure and not wait till you are in trouble. You will then know how to handle the situation when it occurs. §