Article View: borland.public.cppbuilder.nativeapi
Article #6536Re: Delete File question
From: Bruce Salzman
Date: Thu, 28 Apr 2005 19:07
Date: Thu, 28 Apr 2005 19:07
7 lines
1098 bytes
1098 bytes
WinExec(("cmd.exe /C del /Q c:\\my_path\\*.*").c_str(), SW_HIDE);
Alternatively, you can iterate though the contents with FindFirstFile,
FindNextFile, FindClose, and call DeleteFile.
--
Bruce
Technical Details
Message-ID:
<42713496$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<427116d5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,223aa540ce6d47c4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: " Bruce Salzman" <bruce@nospam.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <427116d5@newsgroups.borland.com> Subject: Re: Delete File question Date: Thu, 28 Apr 2005 14:07:54 -0500 Lines: 9 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 24.94.231.89 Message-ID: <42713496$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114715286 24.94.231.89 (28 Apr 2005 12:08:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail