🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6533

Re: Delete File question

#6533
From: LarryJ
Date: Thu, 28 Apr 2005 18:41
26 lines
1906 bytes
DeleteFile( ) will only work if I know the file name as in your example 
"Test.txt". I do not know the file names I only know the folder name. I want 
to empty the folder without knowing the file names inside. Is there an API 
that can do this?

"ali" <ali500s@thecia.com> wrote in message 
news:42712278@newsgroups.borland.com...
> DeletFile()
> //For Example:
>  DeletFile("C:\\Test.txt");
> -------------------------------------------------
> "LarryJ" <LarryJ33@ev1.net> wrote in message
> news:427116d5@newsgroups.borland.com...
>> I need to delete all the files in a folder. I know the folder name and
> path
>> put I do not know what is in the folder. I just want to delete everything
> in
>> the folder. Is there an API that will do this?
>>
>>
>> Thanks
>> Larry.
>>
>>
>
> 
Technical Details
Message-ID: <42712e49@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427116d5@newsgroups.borland.com> <42712278@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
Reply-To: "LarryJ" <LarryJ33@ev1.net>
From: "LarryJ" <LarryJ33@ev1.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <427116d5@newsgroups.borland.com> <42712278@newsgroups.borland.com>
Subject: Re: Delete File question
Date: Thu, 28 Apr 2005 13:41:27 -0500
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 216.40.234.235
Message-ID: <42712e49@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114713673 216.40.234.235 (28 Apr 2005 11:41:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!213.239.142.2.MISMATCH!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail