Anyone know how to delete a stubborn folder?
Post Reply
Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Tue May 20th at 10:56pm 2008


There is a folder in the "My Documents" folder that's been there for ages and can't be deleted or moved. It gives that write protected error. It's not set to read only. Thanks



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Captain P on Tue May 20th at 11:16pm 2008


That's likely because it's in use by a process. This tool might be helpfull to track down the particular process, if that's what causing this problem, of course. image





Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Wed May 21st at 5:59am 2008


If it's used by a process, there's a good chance you don't want to delete it (it would probably be generated again in any case) ... however, if it's something you KNOW is not actually being used by any process, then it's Windows funking up.

Open task manager, kill the explorer process, then open the file >> run new process thing and type in explorer to restart it. If that was the case you'll be able to delete it now.

However, you would also be able to delete it after a system restart and such as well ... and if you've done that and it still says it's in use, then it probably really is being used.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Wed May 21st at 10:53pm 2008


Thanks for your help so far.

It's not being used by anything running on the system, it's not a system folder and it isn't shared. Looking at it's properties, it says the folder is 0 bytes in size and that it's empty. Attempts to open it lead to the following message:

Code:
[folder path] is not accessible

Access is denied.

I'm skeptical of reports that it is empty.





Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Thu May 22nd at 5:43am 2008


Then try what I suggested ... why doesn't anyone do that before they reply? It's very confusing.


Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by reaper47 on Thu May 22nd at 10:54am 2008


Have you tried this?





Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Thu May 22nd at 9:02pm 2008


I DID try what you suggested before replying so don't be so confused. Why do you assume I didn't?

I tried the unlocker tool you suggested reaper47 but it says it can't find ny locking handles (which I assume are for the processes), it doesn't delete the folder either however it can move it to another directory (not the recycle bin) which windows can't do alone.

But thanks





Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Thu May 22nd at 9:19pm 2008


Because you didn't say it worked or didn't work ... you just said, basically, "I know no process is using it". I have no choice but to assume you didn't try it.

By the way, if killing explorer didn't allow you to delete it ... then it is being used by a process.

The only time false locks happen are through the explorer process (which is what does the actual deleting and such, mind you) ... so, if the directory still has a lock on it after killing that process, something else is hanging onto it.

Try looking up all the processes that are currently running and see if any of them are related, even remotely, to the directory or if they are susceptible to an infection.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Fri May 23rd at 7:48pm 2008


That didn't work either (ending all processess except those available in factory settings). Maybe a registry problem?



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Fri May 23rd at 7:58pm 2008


Unlikely. The system uses entries in the registry, not the other way around. Windows has the problem of entries still being in the registry when what they're from on the actual system are long gone.

What is this directory called? Doing internet searches and searching the registry with the name might give some more clues why it's there. Also, is it hidden?

I'm thinking it's one of two possibilities: 1. it's important and you should leave it alone and 2. it's being used by a virus that can't seen in your process window. However, it's important to note that if you booted into something like diagnostic mode, which would effectively stop most any virus from running, and the directory still couldn't be deleted, it just makes it look more like an important directory.

This is all making it look like it's possibility #1.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Sat May 24th at 8:02pm 2008


I tried safe mode and debug mode (I assume = diagnostic mode?) but it still doesn't delete. It's not a system folder. It's a folder that my sister created for her files (who couldn't open it either and so abandoned it, making another folder) before user accounts were set up.

On a side note though, under properties, the Read-only tickbox has a green square instead of a green tick or blank square. When set to blank, OK is clicked (apply to subfolders and files? YES) and properties opened again, the green box is still there.





Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Sun May 25th at 12:45am 2008


A green box? Are you using the XP theme? Because that sounds like the "selected" highlight color and nothing more.

This is awfully strange. The only thing I can think of is to stop trying to do it from Windows all together. Boot into recovery mode from an XP disc and delete it through the dos prompt it will not be in use at that time.

If you still can't get rid of it: sorry, there isn't much else you can do. It sounds like something massively screwed up when creating the directory ... which sounds a lot like Windows, when you think about it.

You can also try taking the HDD and putting it in another computer and deleting the directory through that since nothing will be in use at the time ... but this is all probably more effort than it's worth.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Le Chief on Sun May 25th at 2:06am 2008


Well, I think there is obviously a process using this folder, and it isn't normal for windows to do this. So its either another processes running on your computer or a virus which could one of the processes or be inside one of the processes in the list.

Try boot up in dos mode (Should hopefully be somewhere there next to safemode) and delete it. For memory, the command is "del "c:/where_ever_the_folder_is"". Though I can't remember so look up the ms dos command for delete and how to use it.

? quoting Crono
You can also try taking the HDD and putting it in another computer and deleting the directory through that since nothing will be in use at the time ... but this is all probably more effort than it's worth.


That should do the trick, but as Crono said, its a pain in the ass.






Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Sun May 25th at 4:13am 2008


I really doubt it's a virus now. There's two reasons why: He looked up all the running processes online and found nothing (since we already tried the virus route) and the directory wasn't generated, it was created by his sister. So, it isn't as if the directory just showed up one day.

Also, XP can't boot in dos mode (unless it was an update install from Win98/ME), the dos being used is an emulation and can only be ran through Windows. The "Dos mode" I mentioned, aptly renamed the recovery console, is booted from the XP install disc.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by fishy on Sun May 25th at 4:18pm 2008


if the folder was created before user accounts were set up, then maybe he just doesn't have permission to delete it.




i eat paint



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by Crono on Sun May 25th at 8:32pm 2008


That would mean it's owner is the Administrator and it wouldn't be visible in another user account.

Windows should say "you don't have permission" or something like that if it really were a permissions issue.



Blame it on Microsoft, God does.



Quote
Re: Anyone know how to delete a stubborn folder?
Posted by larchy on Tue May 27th at 3:53pm 2008


This is a fairly common and well known bug with WindowsXP on NTFS volumes.

The easiest way to move/rename/delete the folder is to grab a utility called MoveOnBoot.

You can download it for free from quite a few places, including:
http://www.download.com/EMCO-MoveOnBoot/3000-2094_4-10397293.html?cdlPid=10788920




Quote
Re: Anyone know how to delete a stubborn folder?
Posted by hl_world on Wed May 28th at 7:15pm 2008


Yeah, the green box I mean is there because there is a mixture of READ-ONLY and FULL-ACCESS files inside of the folder but like I said, they don't seem to be able to revert to 1 state or another.

I tried that MoveOnBoot thing you linked, larchy that didn't work either.

If there's nothing I can do about it, I guess I'll just try to ignore it until the next Windows reinstall (all those updates, save-games etc. *gets headache). Your help though, is always appreciated. Thanks for everyones advice.






Post Reply