Discussion:
Delete files with wildcard at runtime
(too old to reply)
Barry
2007-08-07 15:09:37 UTC
Permalink
Is there a way to delete files with a wildcard (, ie *.$$$), at runtime

I am currently using the following routine to delete a single file, but
want to delete a lot of files without having to specify each ones name.

Thanks

Barry

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
err = DeleteFile(FileName);
if (!err)
MessageBox(NULL,"Unable to Delete File","Delete File",MB_OK);
Remy Lebeau (TeamB)
2007-08-07 17:21:38 UTC
Permalink
Post by Barry
Is there a way to delete files with a wildcard (, ie *.$$$), at runtime
Look at SHFileOperation()


Gambit
Barry
2007-08-14 15:34:46 UTC
Permalink
Post by Remy Lebeau (TeamB)
Look at SHFileOperation()
Thanks, but does not seem to be in BCB5 Help?

Barry
Remy Lebeau (TeamB)
2007-08-14 17:33:32 UTC
Permalink
Post by Barry
Thanks, but does not seem to be in BCB5 Help?
You need to look in Microsoft's documentation, as it is a Win32 API
function, not a VCL function.


Gambit
Ed Mulroy [TeamB]
2007-08-14 20:41:59 UTC
Permalink
It is documented in the Windows API help shipped with BCB5. Either get it
from the help menu or run win32.hlp

. Ed
Post by Barry
Post by Remy Lebeau (TeamB)
Look at SHFileOperation()
Thanks, but does not seem to be in BCB5 Help?
Continue reading on narkive:
Loading...