SAMPLE: Windows Code Module to Delete FilesLast reviewed: February 15, 1996Article ID: Q96789 |
The information in this article applies to:
SUMMARYThe DELTEST sample contains a complete code module to delete one or more files by using wildcards. The sample also demonstrates how to use wildcards to search through an entire directory. Download DELTEST.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
MORE INFORMATIONThe C Run-time contains a function to delete one file, but does not allow a program to delete multiple files using wildcard characters. The DELETE.C module included with this sample can be used with any application or dynamic-link library (DLL) to perform this operation. This module uses the _dos_findfirst/next functions in conjunction with the remove() function to allow multiple files to be erased. NOTE: In the sample, if "Delete tmp Files" is selected from the menu, the two .TMP files included with the sample will be erased. For information on how to call the Delete() function, please refer to the comment block inside of DELETE.C.
|
Additional reference words: 3.00 3.10 softlib DELTEST.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |