PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: FileClose()[Next]: FileDelete()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> FileCopy()

FileCopy()

This is an inbuilt function function provided by PPWIZARD.

The purpose of this routine is to copy one file to another.

The return code is "0" when the file was successfully copied or non-zero on error (assuming it returns).

This routine takes at least 2 parameters as follows:

  1. Source File
    The name of the source file to be copied.

  2. Destination File
    The name of the destination file (overwritten if required).

  3. Copy Mode
    The only supported values are:

  4. Continue on Error?
    Pass "Y" to return a non-zero return code on error rather than dying. This does not cover incorrect parameters.

Example

#DefineRexx '' TRACE_ON
   Call FileCopy '1.x', 'out\2.x', 'equal'
#DefineRexx


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: FileClose()[Next]: FileDelete()


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm