Cannot delete folder


Go Back   Computer Help Articles > Windows XP General
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 02:28 AM
Brian
 
Posts: n/a
Default Cannot delete folder

In attempting to remove an empty deleted folder from the recycle bin, I got
this message: "Cannot delete [FolderName]: directory is not empty."

I restored the folder, and now I cannot even get it back to the recycle bin
by deleting it. I can, however, rename and move it, and get it to the recycle
bin by placing another folder inside it and then deleting it. But...when I
try to empty the recycle bin, I get almost the same message: "Cannot delete
Dc1: directory is not empty."

The folder shows a size of 0 bytes. I have also tried deleting it from the
command prompt, and it just gives me the "Directory is not empty" message.
Reply With Quote
  #2  
Old 01-05-2006, 02:28 AM
Will Denny
 
Posts: n/a
Default Re: Cannot delete folder

Hi

Try this:

Go to a Command Prompt and change to that folder. Then run the following
command:

dir /a/s

Do you see any files in the folder then?

--


Will Denny
MS MVP Windows Shell/User
Please reply to the News Groups

"Brian" <Brian@discussions.microsoft.com> wrote in message
news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
> In attempting to remove an empty deleted folder from the recycle bin, I
> got
> this message: "Cannot delete [FolderName]: directory is not empty."
>
> I restored the folder, and now I cannot even get it back to the recycle
> bin
> by deleting it. I can, however, rename and move it, and get it to the
> recycle
> bin by placing another folder inside it and then deleting it. But...when I
> try to empty the recycle bin, I get almost the same message: "Cannot
> delete
> Dc1: directory is not empty."
>
> The folder shows a size of 0 bytes. I have also tried deleting it from the
> command prompt, and it just gives me the "Directory is not empty" message.



Reply With Quote
  #3  
Old 01-05-2006, 02:28 AM
Brian
 
Posts: n/a
Default Re: Cannot delete folder

Already tried it. Nothing there.

"Will Denny" wrote:

> Hi
>
> Try this:
>
> Go to a Command Prompt and change to that folder. Then run the following
> command:
>
> dir /a/s
>
> Do you see any files in the folder then?
>
> --
>
>
> Will Denny
> MS MVP Windows Shell/User
> Please reply to the News Groups
>
> "Brian" <Brian@discussions.microsoft.com> wrote in message
> news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
> > In attempting to remove an empty deleted folder from the recycle bin, I
> > got
> > this message: "Cannot delete [FolderName]: directory is not empty."
> >
> > I restored the folder, and now I cannot even get it back to the recycle
> > bin
> > by deleting it. I can, however, rename and move it, and get it to the
> > recycle
> > bin by placing another folder inside it and then deleting it. But...when I
> > try to empty the recycle bin, I get almost the same message: "Cannot
> > delete
> > Dc1: directory is not empty."
> >
> > The folder shows a size of 0 bytes. I have also tried deleting it from the
> > command prompt, and it just gives me the "Directory is not empty" message.

>
>
>

Reply With Quote
  #4  
Old 01-05-2006, 02:28 AM
Will Denny
 
Posts: n/a
Default Re: Cannot delete folder

Hi

Have you cleared any attributes that are attached to the folder and then
tried to delete it?

--


Will Denny
MS MVP Windows Shell/User
Please reply to the News Groups

"Brian" <Brian@discussions.microsoft.com> wrote in message
news:4449B319-3CDE-4D64-9169-54E0EBB66612@microsoft.com...
> Already tried it. Nothing there.
>
> "Will Denny" wrote:
>
>> Hi
>>
>> Try this:
>>
>> Go to a Command Prompt and change to that folder. Then run the following
>> command:
>>
>> dir /a/s
>>
>> Do you see any files in the folder then?
>>
>> --
>>
>>
>> Will Denny
>> MS MVP Windows Shell/User
>> Please reply to the News Groups
>>
>> "Brian" <Brian@discussions.microsoft.com> wrote in message
>> news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
>> > In attempting to remove an empty deleted folder from the recycle bin, I
>> > got
>> > this message: "Cannot delete [FolderName]: directory is not empty."
>> >
>> > I restored the folder, and now I cannot even get it back to the recycle
>> > bin
>> > by deleting it. I can, however, rename and move it, and get it to the
>> > recycle
>> > bin by placing another folder inside it and then deleting it.
>> > But...when I
>> > try to empty the recycle bin, I get almost the same message: "Cannot
>> > delete
>> > Dc1: directory is not empty."
>> >
>> > The folder shows a size of 0 bytes. I have also tried deleting it from
>> > the
>> > command prompt, and it just gives me the "Directory is not empty"
>> > message.

>>
>>
>>



Reply With Quote
  #5  
Old 01-05-2006, 02:28 AM
Brian
 
Posts: n/a
Default Re: Cannot delete folder

I tried this to no avail: attrib -h -r [foldername] /s

Interestingly, I moved the bad folder to a shared folder & connected via the
network, and I now see two files in there: tcptest.exe (33K) and wbemtest.exe
(154K) . Maybe something left over from a trojan/virus-removal?

When I copy the folder, it copies without these two files. When I copy an
empty folder of the same name over this folder, it appears to work, but the
two files are left there (I can still see them only across the network). I
cannot copy the folder across the network, though.

"Will Denny" wrote:

> Hi
>
> Have you cleared any attributes that are attached to the folder and then
> tried to delete it?
>
> --
>
>
> Will Denny
> MS MVP Windows Shell/User
> Please reply to the News Groups
>
> "Brian" <Brian@discussions.microsoft.com> wrote in message
> news:4449B319-3CDE-4D64-9169-54E0EBB66612@microsoft.com...
> > Already tried it. Nothing there.
> >
> > "Will Denny" wrote:
> >
> >> Hi
> >>
> >> Try this:
> >>
> >> Go to a Command Prompt and change to that folder. Then run the following
> >> command:
> >>
> >> dir /a/s
> >>
> >> Do you see any files in the folder then?
> >>
> >> --
> >>
> >>
> >> Will Denny
> >> MS MVP Windows Shell/User
> >> Please reply to the News Groups
> >>
> >> "Brian" <Brian@discussions.microsoft.com> wrote in message
> >> news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
> >> > In attempting to remove an empty deleted folder from the recycle bin, I
> >> > got
> >> > this message: "Cannot delete [FolderName]: directory is not empty."
> >> >
> >> > I restored the folder, and now I cannot even get it back to the recycle
> >> > bin
> >> > by deleting it. I can, however, rename and move it, and get it to the
> >> > recycle
> >> > bin by placing another folder inside it and then deleting it.
> >> > But...when I
> >> > try to empty the recycle bin, I get almost the same message: "Cannot
> >> > delete
> >> > Dc1: directory is not empty."
> >> >
> >> > The folder shows a size of 0 bytes. I have also tried deleting it from
> >> > the
> >> > command prompt, and it just gives me the "Directory is not empty"
> >> > message.
> >>
> >>
> >>

>
>
>

Reply With Quote
  #6  
Old 01-05-2006, 02:29 AM
Brian
 
Posts: n/a
Default Re: Cannot delete folder

Also, when I try to compress the folder (just another thing I tried in the
process), Windows tells me it cannot be done because the folder is empty.

"Will Denny" wrote:

> Hi
>
> Have you cleared any attributes that are attached to the folder and then
> tried to delete it?
>
> --
>
>
> Will Denny
> MS MVP Windows Shell/User
> Please reply to the News Groups
>
> "Brian" <Brian@discussions.microsoft.com> wrote in message
> news:4449B319-3CDE-4D64-9169-54E0EBB66612@microsoft.com...
> > Already tried it. Nothing there.
> >
> > "Will Denny" wrote:
> >
> >> Hi
> >>
> >> Try this:
> >>
> >> Go to a Command Prompt and change to that folder. Then run the following
> >> command:
> >>
> >> dir /a/s
> >>
> >> Do you see any files in the folder then?
> >>
> >> --
> >>
> >>
> >> Will Denny
> >> MS MVP Windows Shell/User
> >> Please reply to the News Groups
> >>
> >> "Brian" <Brian@discussions.microsoft.com> wrote in message
> >> news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
> >> > In attempting to remove an empty deleted folder from the recycle bin, I
> >> > got
> >> > this message: "Cannot delete [FolderName]: directory is not empty."
> >> >
> >> > I restored the folder, and now I cannot even get it back to the recycle
> >> > bin
> >> > by deleting it. I can, however, rename and move it, and get it to the
> >> > recycle
> >> > bin by placing another folder inside it and then deleting it.
> >> > But...when I
> >> > try to empty the recycle bin, I get almost the same message: "Cannot
> >> > delete
> >> > Dc1: directory is not empty."
> >> >
> >> > The folder shows a size of 0 bytes. I have also tried deleting it from
> >> > the
> >> > command prompt, and it just gives me the "Directory is not empty"
> >> > message.
> >>
> >>
> >>

>
>
>

Reply With Quote
  #7  
Old 01-05-2006, 02:29 AM
Brian
 
Posts: n/a
Default Re: Cannot delete folder

I found a solution - on a whim. I created a new user profile, logged on as
that user, and moved the folder to that user's Docs folder. Both files now
appeared in the folder and were able to be deleted, along with the folder.

I don't know what happened, but I guess all's well that ends well.

Thanks.

"Will Denny" wrote:

> Hi
>
> Have you cleared any attributes that are attached to the folder and then
> tried to delete it?
>
> --
>
>
> Will Denny
> MS MVP Windows Shell/User
> Please reply to the News Groups
>
> "Brian" <Brian@discussions.microsoft.com> wrote in message
> news:4449B319-3CDE-4D64-9169-54E0EBB66612@microsoft.com...
> > Already tried it. Nothing there.
> >
> > "Will Denny" wrote:
> >
> >> Hi
> >>
> >> Try this:
> >>
> >> Go to a Command Prompt and change to that folder. Then run the following
> >> command:
> >>
> >> dir /a/s
> >>
> >> Do you see any files in the folder then?
> >>
> >> --
> >>
> >>
> >> Will Denny
> >> MS MVP Windows Shell/User
> >> Please reply to the News Groups
> >>
> >> "Brian" <Brian@discussions.microsoft.com> wrote in message
> >> news:9481AC49-045A-4C21-8B8C-B8458034E86B@microsoft.com...
> >> > In attempting to remove an empty deleted folder from the recycle bin, I
> >> > got
> >> > this message: "Cannot delete [FolderName]: directory is not empty."
> >> >
> >> > I restored the folder, and now I cannot even get it back to the recycle
> >> > bin
> >> > by deleting it. I can, however, rename and move it, and get it to the
> >> > recycle
> >> > bin by placing another folder inside it and then deleting it.
> >> > But...when I
> >> > try to empty the recycle bin, I get almost the same message: "Cannot
> >> > delete
> >> > Dc1: directory is not empty."
> >> >
> >> > The folder shows a size of 0 bytes. I have also tried deleting it from
> >> > the
> >> > command prompt, and it just gives me the "Directory is not empty"
> >> > message.
> >>
> >>
> >>

>
>
>

Reply With Quote
  #8  
Old 01-05-2006, 02:29 AM
Thomas Jespersen
 
Posts: n/a
Default Re: Cannot delete folder

On Sat, 31 Dec 2005 10:00:01 -0800, Brian wrote:


> Interestingly, I moved the bad folder to a shared folder & connected via the
> network, and I now see two files in there: tcptest.exe (33K) and wbemtest.exe
> (154K) . Maybe something left over from a trojan/virus-removal?


I tried to search for the filenames and found this:
http://forums.techguy.org/security/3...dows-help.html

Try to scan and clean your system with a virusscanner and a spyware
cleaner:

Spybot S&D:
http://www.safer-networking.org/en/download/

AVG Free:
http://free.grisoft.com/

Lavasoft ADaware:
http://www.lavasoftusa.com/software/adaware/
Reply With Quote
  #9  
Old 01-05-2006, 02:29 AM
Plato
 
Posts: n/a
Default Re: Cannot delete folder

=?Utf-8?B?QnJpYW4=?= wrote:
>
> In attempting to remove an empty deleted folder from the recycle bin, I got
> this message: "Cannot delete [FolderName]: directory is not empty."


First step. Disable nortons protected recycle bin or anything nortons
you have installed.

http://www.bootdisk.com/xptop20.htm#8




--
http://www.bootdisk.com/

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping backup of my pictures in my order Gladys222 Windows XP Photos 10 01-05-2006 07:08 AM
Re: where is ythe toggle for mainataing settings between sessions? craig Windows XP Customize 0 01-05-2006 06:33 AM
CANNOT DELETE FOLDER Yasmin Windows XP Security Admin 1 01-05-2006 04:23 AM
One-way connection: networked XP/2000 PC's Cheryl Windows XP Network Web 22 01-05-2006 04:11 AM
Folder View Donaldo Windows XP General 3 01-05-2006 02:35 AM


All times are GMT. The time now is 04:45 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Cannot delete folder