Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete all files in a directory

Status
Not open for further replies.

ceodav

Programmer
Feb 21, 2003
106
IT
hi,
i want to delete all the files in a directory,
i use
DeleteFile("C:\\temp\\*.*")
or
remove("C:\\temp\\*.*")

it doesn't work!
anyone could help me?

thanks
 
With CFileFind you can search on *.* and delete them 1 by 1. DeleteFile does not support wildcards.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top