TIMELINEZ Vol5-ISS7, July/Aug87
After using MS-DOS for a couple of years at work and at school, I have gotten used to a few of the nice features that DOS has. One DOS command that is lacking on the QL is a disk copying command (or shall I say Tape copying).
The program listed is done as a procedure. It will not “RUN” as it is. You must type in “TAPECOPY” to have the program run.
One part of the program comes from a program written by Marshall Stiles. The program, published in the QL Report, does a directory listing to memory. The program also showed how to list a directory to a filem
The program uses this idea. The directory of mdv1_ is sent to a file. This file is then read. The file names stored in the file are used to call each file and copy them to the other drive.
I hope you find the program useful. It is not fastn but it saves typing in each file name you want to save.
TAPECOPY LISTING
100 REMark TAPECOPY
110 DEFine PROCedure tapecopy
120 CLS
130 PRINT
140 PRINT " Insert Original Tape in Drive 1"
150 PRINT " Insert Copy Tape in Drive 2"
160 PRINT
170 PRINT " Hit Any Key To Continue"
180 PAUSE
190 drive$="mdv1_"
200 drive2$="mdv2_"
220 OPEN_NEW #4,drive$&"directory"
230 DIR #4,drive$
240 CLOSE #4
250 OPEN_IN #4,drive$&"directory"
260 count = 0
270 REPeat loop
280 INPUT #4,entry$
290 count = count + 1
300 IF EOF (#4) THEN EXIT loop
310 END REPeat loop
320 CLOSE #4
330 DIM in$(count, 18)
340 OPEN_IN #4,drive$&"directory"
350 FOR x = 1 to count
360 INPUT #4, in$(x)
370 NEXT x
380 CLOSE #4
390 FOR x = 3 TO count
400 COPY drive$&in$(x) TO drive2$&in$(x)
410 NEXT x
420 DELETE drive2$&"directory"
430 DELETE drive$&"directory"
440 PRINT
450 PRINT " Tape Copy Done"
460 BEEP 1800,10
470 END DEFine tapecopy
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.