Article View: borland.public.delphi.nativeapi
Article #12075Re: RemoveDir problem
From: Milan Miladinovic
Date: Mon, 25 Nov 2002 11:40
Date: Mon, 25 Nov 2002 11:40
31 lines
1687 bytes
1687 bytes
Use this code instad: RemoveDir(ExtractFilePath(ParamStr(0))+'Temp'); Milan P.S. You need '\' when use ExtractFilePath(Application.ExeName) "Nik" <nikb2002@nospam.com> wrote in message news:3de20ad9$1@newsgroups.borland.com... > > hello, > > i want to delete an empty directory, so i used this code: > > ChDir(Application.ExeName); > RemoveDir(ExtractFilePath(Application.ExeName) + 'Temp'); > > but i don't know why the specified directory won't be deleted! > > plz note that i'm sure that it's empty, also i called ChDir before > calling RemoveDir. so 'Temp' folder is not the current directory. > > i'm using WinXP. > > thanks for any reply, > Nik B.
Technical Details
Message-ID:
<3de20c6a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3de20ad9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94dd,cece786f25c52b92 X-Google-Attributes: gidf94dd,public X-Google-ArrivalTime: 2002-11-25 04:15:35 PST From: "Milan Miladinovic" <milanbetter@hotmail.com> Newsgroups: borland.public.delphi.nativeapi References: <3de20ad9$1@newsgroups.borland.com> Subject: Re: RemoveDir problem Date: Mon, 25 Nov 2002 12:40:29 +0100 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 195.250.103.108 Message-ID: <3de20c6a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038224490 195.250.103.108 (25 Nov 2002 03:41:30 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail