Article View: borland.public.cppbuilder.nativeapi
Article #767Re: Cannot delete a directory
From: Jos�
Date: Mon, 07 Jan 2008 15:38
Date: Mon, 07 Jan 2008 15:38
18 lines
1482 bytes
1482 bytes
On Mon, 7 Jan 2008 09:29:12 -0500, "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in borland.public.cppbuilder.nativeapi: >I don't know how rename can delete a file. DeleteFile, remove and unlink >all can do that and are provided. Try using one of them. Rename() doesn't delete a file, but it moves the file to another directory, so that the source directory becomes empty. I do not follow your suggestion to use DeleteFile(), since that's not what I want. >> My program uses findfirst ... > >Don't forget to use findclose after finishing with findfirst and findnext. Yes, that worked. It's not in the help file. -- Jos�
Technical Details
Message-ID:
<voh4o3d7mpoenrgk4j0voafoitfbg53vuh@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<ne94o39s71g92csaaup85ufdomjisjvu4h@4ax.com> <4782373a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aa6e00669d5b96c9 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Cannot delete a directory Date: Mon, 07 Jan 2008 16:38:44 +0100 Message-ID: <voh4o3d7mpoenrgk4j0voafoitfbg53vuh@4ax.com> References: <ne94o39s71g92csaaup85ufdomjisjvu4h@4ax.com> <4782373a$1@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1117 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.73.146 X-Trace: newsgroups.borland.com 1199720422 82.75.73.146 (7 Jan 2008 07:40:22 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail