When deleting a folder with WIN32 API RemoveDirectory(), it fails and
the last error is ERROR_ACCESS_DENIED (error code 5). How can I find
out, what process still accesses it? Is there a debug technique for
that?
Thanks,
Peter
Paul T.
<peach...@gmx.ch> wrote in message
news:bfca9d7e-73dc-49cd...@k20g2000vbp.googlegroups.com...
I think "access denied" means another process has this directory as
its working directory. Do the following example in the root directory
of your device:
mkdir hello
cd hello
rmdir \hello -> fails!
cd ..
rmdir \hello -> works!
So: if the cmd has the working directory "hello", it fails - otherwise
it's possible. Typically Windows :-( ! How can I find out, which
process occupies my directory to remove?
Paul T.
"PeterV" <peach...@gmx.ch> wrote in message
news:25f0a184-49f8-49b8...@37g2000yqp.googlegroups.com...