Copying empty files

You cannot copy an empty file (zero byte length) with the COPY command. To copy an empty file you may use the TYPE command:

 
  type emptyFile >targetFile

Note that the XCOPY command can copy empty files. The COPY command of 4OS2 can also copy empty files.
And, of course, you can also write a REXX program to copy empty files.


[Back: Copying open or locked files]
[Next: The DETACH command]