Copies the source file or subdirectory to the destination file or subdirectory.

#define INCL_DOSFILEMGR
#include <os2.h>

PSZ       pszOld;  /*  Address of the ASCIIZ path name of the source file, subdirectory, or character device. */
PSZ       pszNew;  /*  Address of the ASCIIZ path name of the target file, subdirectory, or character device. */
ULONG     option;  /*  ULONG bit flags that define how the DosCopy function is done. */
APIRET    ulrc;    /*  Return Code. */

ulrc = DosCopy(pszOld, pszNew, option);


[Back] [Next]