home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / Chapter5 / 5-4 / CopyFile.c
C/C++ Source or Header  |  2000-07-14  |  207b  |  16 lines

  1.  
  2. #include <windows.h>
  3.  
  4.  
  5. BOOL main(INT argc, BYTE *argv[])
  6. {
  7.     if(argc != 3)
  8.     {
  9.         printf("syntax: copy <source> <destination>\n");
  10.         return 1;
  11.     }
  12.  
  13.     return !CopyFile(argv[1], argv[2], FALSE);
  14. }
  15.  
  16.