home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
PMBOOT.ZIP
/
KOPY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-26
|
468b
|
18 lines
#define INCL_NOCOMMON
#define INCL_DOSFILEMGR
#include <os2.h>
#include <stdio.h>
int _cdecl main (int argc,char *argv[]) {
if (argc==3) {
USHORT rc = DosCopy(argv[1],argv[2],DCPY_EXISTING,0);
if (rc) {
printf("DosCopy(\"%s\",\"%s\",DCPY_EXISTING,0): failed with error code %d\n",argv[1],argv[2],rc);
} /* endif */
} else {
printf("Usage: %s <source> <destination>\n",argv[0]);
} /* endif */
return 0;
}