🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12074

RemoveDir problem

#12074
From: Nik
Date: Mon, 25 Nov 2002 11:34
17 lines
1218 bytes
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: <3de20ad9$1@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!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,cece786f25c52b92,start
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2002-11-25 04:15:35 PST
From: "Nik" <nikb2002@nospam.com>
Sender: "Nik" <nikb2002@nospam.com>
Reply-To: "Nik" <nikb2002@nospam.com>
Subject: RemoveDir problem
Newsgroups: borland.public.delphi.nativeapi
X-User-Info: 62.220.96.14 62.220.96.14    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3de20ad9$1@newsgroups.borland.com>
Date: 25 Nov 2002 03:34:49 -0800
X-Trace: newsgroups.borland.com 1038224089 207.105.83.65 (25 Nov 2002 03:34:49 -0800)
Lines: 17
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!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail