I am writing a function in Visual C++ 5.0 that should delete files from a directory that begins with a certain prefix. A related DOS command would be "C:\> del myfiles.*". I have used the function DeleteFile() to delete files where I know the exact name, such as "DeleteFile("c:\\archive\\myfiles.001")". But if I substitute the wildcard character "*"
for ".001" it does not work. Can this function accomplish this task? If so, please provide an example. If it can't, what would you recommend?
I think this should be an easy question to answer but if you need more points, feel free
to take what you feel it is worth.