Sign in with
Sign up | Sign in
Your question

The directory is not empty

Tags:
  • File System
  • Windows
Last response: in Windows 2000/NT
Share
May 19, 2004 6:54:32 PM

Archived from groups: microsoft.public.win2000.file_system (More info?)

Hi,

I have a few folders on my drive and whenever I try to
delete them I get the message that "Cannot delete <folder
name>: The directory is not empty". If I do delete the
files and subfolders and send them to the recycle bin then
I can't delete these folders and files from the recycle
bin and get the same "The directory is not empty" message;
and I still cannot delete the main parent folder from the
drive.

Has anyone else encountered this problem? Any help is
greatly appreciated.

Thanks,
Bob

More about : directory empty

Anonymous
May 20, 2004 4:36:18 PM

Archived from groups: microsoft.public.win2000.file_system (More info?)

Hi, Bob.

MAYBE this will work. It often does.

Open a "DOS" window. Navigate to the parent of the undeletable folder. Use
the Remove Directory command with the /s switch to delete that folder and
all the subfolders and files within it.
Type: rd <foldername> /s

If that doesn't work, tell us exactly what you did and what results you saw.

RC
--
R. C. White, CPA
San Marcos, TX
rc@corridor.net
Microsoft Windows MVP

"Bob" <bobbasic2002@yahoo.com> wrote in message
news:f72401c43deb$dde4ba20$a501280a@phx.gbl...
> Hi,
>
> I have a few folders on my drive and whenever I try to
> delete them I get the message that "Cannot delete <folder
> name>: The directory is not empty". If I do delete the
> files and subfolders and send them to the recycle bin then
> I can't delete these folders and files from the recycle
> bin and get the same "The directory is not empty" message;
> and I still cannot delete the main parent folder from the
> drive.
>
> Has anyone else encountered this problem? Any help is
> greatly appreciated.
>
> Thanks,
> Bob
May 20, 2004 5:24:05 PM

Archived from groups: microsoft.public.win2000.file_system (More info?)

Hi,

That didn't work either. Here are the results:-

C:\>rd /s 24d3b8a5se
24d3b8a5se, Are you sure (Y/N)? Y
24d3b8a5se\8d6f9423\assembly\dl2\6ef834e6\0043BC~1 - The
directory is not empty.

24d3b8a5se\8d6f9423\assembly\tmp\1BIPW3AH - The directory
is not empty.
24d3b8a5se\8d6f9423\assembly\tmp\CLSZ6DKR - The directory
is not empty.
24d3b8a5se\8d6f9423\assembly\tmp\X8FMT07E - The directory
is not empty.

I can rename the folders; just can't delete them which is
what I need to do.

Thanks for the help,
Bob

>-----Original Message-----
>Hi, Bob.
>
>MAYBE this will work. It often does.
>
>Open a "DOS" window. Navigate to the parent of the
undeletable folder. Use
>the Remove Directory command with the /s switch to
delete that folder and
>all the subfolders and files within it.
>Type: rd <foldername> /s
>
>If that doesn't work, tell us exactly what you did and
what results you saw.
>
>RC
>--
>R. C. White, CPA
>San Marcos, TX
>rc@corridor.net
>Microsoft Windows MVP
>
>"Bob" <bobbasic2002@yahoo.com> wrote in message
>news:f72401c43deb$dde4ba20$a501280a@phx.gbl...
>> Hi,
>>
>> I have a few folders on my drive and whenever I try to
>> delete them I get the message that "Cannot delete
<folder
>> name>: The directory is not empty". If I do delete the
>> files and subfolders and send them to the recycle bin
then
>> I can't delete these folders and files from the recycle
>> bin and get the same "The directory is not empty"
message;
>> and I still cannot delete the main parent folder from
the
>> drive.
>>
>> Has anyone else encountered this problem? Any help is
>> greatly appreciated.
>>
>> Thanks,
>> Bob
>
>.
>
November 10, 2012 6:15:22 PM

Go into directory via DOS command prompt and use "taskkill -f -im [foldername] .exe" to end the initial launch of the application. You can then go through and use rmdir to delete the directory. Good chance you figured this out within the last 8 years though, just noticed that.

Bob said:
Archived from groups: microsoft.public.win2000.file_system (More info?)

Hi,

That didn't work either. Here are the results:-

C:\>rd /s 24d3b8a5se
24d3b8a5se, Are you sure (Y/N)? Y
24d3b8a5se\8d6f9423\assembly\dl2\6ef834e6\0043BC~1 - The
directory is not empty.

24d3b8a5se\8d6f9423\assembly\tmp\1BIPW3AH - The directory
is not empty.
24d3b8a5se\8d6f9423\assembly\tmp\CLSZ6DKR - The directory
is not empty.
24d3b8a5se\8d6f9423\assembly\tmp\X8FMT07E - The directory
is not empty.

I can rename the folders; just can't delete them which is
what I need to do.

Thanks for the help,
Bob

>-----Original Message-----
>Hi, Bob.
>
>MAYBE this will work. It often does.
>
>Open a "DOS" window. Navigate to the parent of the
undeletable folder. Use
>the Remove Directory command with the /s switch to
delete that folder and
>all the subfolders and files within it.
>Type: rd <foldername> /s
>
>If that doesn't work, tell us exactly what you did and
what results you saw.
>
>RC
>--
>R. C. White, CPA
>San Marcos, TX
>rc@corridor.net
>Microsoft Windows MVP
>
>"Bob" <bobbasic2002@yahoo.com> wrote in message
>news:f72401c43deb$dde4ba20$a501280a@phx.gbl...
>> Hi,
>>
>> I have a few folders on my drive and whenever I try to
>> delete them I get the message that "Cannot delete
<folder
>> name>: The directory is not empty". If I do delete the
>> files and subfolders and send them to the recycle bin
then
>> I can't delete these folders and files from the recycle
>> bin and get the same "The directory is not empty"
message;
>> and I still cannot delete the main parent folder from
the
>> drive.
>>
>> Has anyone else encountered this problem? Any help is
>> greatly appreciated.
>>
>> Thanks,
>> Bob
>
>.
>

!