🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to determine the permissions of a folder using XP

#11182
From: Bob Gonder
Date: Thu, 19 Feb 2004 14:13
14 lines
1719 bytes
Roland wrote:

>This seems to be the question, how determine it? I am able to remove the dir using the explorer, so I think I have all rights. Thats the reason I postet it, why is RemoveDir not able to delete it.
>By the way the error code of GetLastError is 0x00000005.

Access Denied.
If your app, or some other app has that directory as the "current"
directory, then it is "in use" and can't be deleted.

i.e. if you "cd c:\somedir"  then "rd c:\somedir" it won't work.
XP says
"The process cannot access the file because it is being used by
another process."
Which sound a lot like Access Denied.
Technical Details
Message-ID: <5kg930thinrgfv9i5cluc4guqo704014ig@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <402c98a1$1@newsgroups.borland.com> <m2hdxu6gm3.fsf@madbox2.local> <m2ekstsfvi.fsf@madbox2.local> <40346a5d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ce8d67f0062a8486
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-19 06:23:59 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: how to determine the permissions of a folder using XP
Date: Thu, 19 Feb 2004 06:13:08 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <5kg930thinrgfv9i5cluc4guqo704014ig@4ax.com>
References: <402c98a1$1@newsgroups.borland.com> <m2hdxu6gm3.fsf@madbox2.local> <m2ekstsfvi.fsf@madbox2.local> <40346a5d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.170
X-Trace: newsgroups.borland.com 1077199988 67.31.165.170 (19 Feb 2004 06:13:08 -0800)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail