delete files using CFile ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Team :

I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.

Thanks in advanced
 
Another way that I have tried to do the same was :

system("erase c:/user.def"); with not result

After execute the command line, the file is still in the same place !!
 
German said:
I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.

CFile::Remove(), DeleteFile(), SHFileOperation(), whatever you like.

Regards,
Will
 
Back
Top