Re: Deleting Files

From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 09/14/04


Date: Tue, 14 Sep 2004 00:18:14 -0400


"Murthy" <Murthy@discussions.microsoft.com> wrote in message
news:0DED62A4-68FD-46D4-8874-925C3977BF6E@microsoft.com...
> How can I delete files with filenames containing wildcards
> (ex: *.dat)? The Win32 API DeleteFile() does not accept
> wildcards.

Check the docs for ShFileOperation().

> (Using FindFirstFile/FindNextFile and deleting files one by one
> will be too long....

Why?

Regards,
Will