🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#11133
From: Roland
Date: Mon, 23 Feb 2004 10:14
26 lines
2138 bytes
Hello Bob,

after some tests I found out that the problem is the OpenDialog Class. So now I have to switch to another usergroup.

As soon as I run Execute of TOpenDialog to determine the file names only, my app 'occupies' the folder and does not free it until I close my app. I tried to create and delete it immediately during runtime using new and delete but unfortunately I had no success.

Roland


Bob Gonder <notbg@notmindspring.invalid> wrote:
>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: <4039d268$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news-FFM2.ecrc.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!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> <5kg930thinrgfv9i5cluc4guqo704014ig@4ax.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-23 02:31:18 PST
From: "Roland" <neubert@wst-gmbh.de>
Sender: "Roland" <neubert@wst-gmbh.de>
Reply-To: "Roland" <neubert@wst-gmbh.de>
Subject: Re: how to determine the permissions of a folder using XP
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 62.180.198.77     
References: <402c98a1$1@newsgroups.borland.com> <m2hdxu6gm3.fsf@madbox2.local> <m2ekstsfvi.fsf@madbox2.local> <40346a5d$1@newsgroups.borland.com> <5kg930thinrgfv9i5cluc4guqo704014ig@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4039d268$1@newsgroups.borland.com>
Date: 23 Feb 2004 02:14:00 -0800
X-Trace: newsgroups.borland.com 1077531240 207.105.83.66 (23 Feb 2004 02:14:00 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news-FFM2.ecrc.net!newsfeed.icl.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail