Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

delete files using CFile ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
German - 23 Jun 2005 17:11 GMT
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
German - 23 Jun 2005 18:41 GMT
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 !!

> 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
William DePalo [MVP VC++] - 23 Jun 2005 18:58 GMT
> 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
German - 24 Jun 2005 14:44 GMT
It works fine, and thank you very much William,
German

> > I do no know the procedure to delete file using CFile ?? or any other way
> > (command or procedure) to reach this action.
[quoted text clipped - 3 lines]
> Regards,
> Will

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.