Y
yangyong
news.tele.dk said:Hi There,
I have been trying to delete several files by using wildcard using either
remove or _unlink, but non of them seems to work.
char temp_files[MAX_PATH];
strcpy(temp_files, "c:\\tmp*.*");
_unlink(temp_files); // doesn't work
remove(temp_files); // doesn't work either
Can someone please tell me how I delete several files using wildcard?
Thanks in regards,
Jess
---
Jess Nielsen, HND/C
Systems Developer
"I don't want to be a pie, I don't like gravy!"
Windows: you can FindFirstFile, FindNextFile loop.