News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Delete all files API ?

Started by Magnum, April 11, 2010, 12:36:22 AM

Previous topic - Next topic

Magnum

Is there an API that can use wildcards to delete all files in a directory?

Thanks.
Have a great day,
                         Andy

hutch--

Vaguely I remember there is a "Shell" function that will delete a tree but exercise great care, they can take out more than you want. You can also roll your own using a recursive delete algorithm. When I developed one some years ago i tested it on a bare partition as one mistake in development and you can take out the contents of a whole drive with it.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

sinsi

SHFileOperation can delete more than one file at a time using wildcards.
Light travels faster than sound, that's why some people seem bright until you hear them.