SAMPLE: Copying a File

ID: Q95333

The information in this article applies to:

COPYTEST is a sample that contains a complete code module to copy a file of any size and set its file date/time stamp.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ COPYTEST.EXE (size: 38565 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from
               Online Services

Windows contains its own set of file I/O functions to perform the basic operations such as file open, close, read, write, and so forth; however, there is no function to copy a file. The COPY.C module included in this sample can be plugged into any application or dynamic-link library (DLL). Some of the features of this module are: For information on how to call the CopyFile() function, please refer to the comment block inside of COPY.C.

Additional query words: 3.00 3.10 softlib COPYTEST.EXE

Keywords          : kbsample kb16bitonly kbWinOS310 kbWinOS300 
Version           : 3.00 3.10

Last Reviewed: December 3, 1998