Backbutton

Example 20

Example 20 - Copying files from a LIBRARY/MAINTENANCE CD Image on disk
 
COPY COPYWRITE/= TO #MYTESTVOLUME(CD,HOSTNAME=LOCAL)[T];
IF (T(TASKVALUE)=0) THEN
BEGIN

T(STATUS=NEVERUSED);
COPY *= AS JUNK/= FROM #MYTESTVOLUME(CD,LOCKEDFILE,HOSTNAME=LOCAL)[T];

END;
  1. The COPYWRITE/= files were copied to a LIBRARY/MAINTENANCE CD image file.
  2. A CD image file can be created either by COPYWRITE, or by a bit image copy of a mounted CD.
    See Example 50.
  3. The files were then copied from the CD image file AS new file titles to disk.
  4. TheLOCKEDFILE attribute tells COPYWRITE that the source is a CD Image file.

 

Example20