Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Cannot delete or rename or moving directories

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Connecting to Https is too slow form internet for..  
Author Message
fernandolarred

External


Since: Oct 25, 2004
Posts: 17



(Msg. 1) Posted: Mon Nov 01, 2004 10:14 am
Post subject: Cannot delete or rename or moving directories
Archived from groups: microsoft>public>inetserver>iis (more info?)

I am having some trouble renaming (or moving) various folders, each which
contain a different website. These are static websites, there are no cgis,
isapi dlls, or anything running. I stop the website, then I try to rename
the folder but get a message saying that access is denied and that the file
may be in use.

Some sites don't exhibit this behavior while others do.

Please advise. Thank you,

Fernando L. Arredondo

 >> Stay informed about: Cannot delete or rename or moving directories 
Back to top
Login to vote
fernandolarred

External


Since: Oct 25, 2004
Posts: 17



(Msg. 2) Posted: Mon Nov 01, 2004 10:41 am
Post subject: Re: Cannot delete or rename or moving directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

One thing that I'd like to mention is that I have had experience in the past
where an 'anonymous' ftp port results in folders that cannot be removed
using the Windows Explorer. In those cases, I would find the offending file
using dir /x, then I would rd "" /x and all was well. In this case, there
are none of these hack files on my PC right now yet I cannot remove at least
one completely empty folder.

Thanks

 >> Stay informed about: Cannot delete or rename or moving directories 
Back to top
Login to vote
fernandolarred

External


Since: Oct 25, 2004
Posts: 17



(Msg. 3) Posted: Mon Nov 01, 2004 10:55 am
Post subject: Re: Cannot delete or rename or moving directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Just wanted to add that the offending file is named APP. I cannot delete
it, yet with Windows Explorer, I can rename it!

I renamed it to TheFile, did a dir /x and saw THEFIL~1, next I rd THEFIL~1
and it says that the directory is not empty. Del THEFIL~1 doesn't work
either.

Can someone give me a hint as to what is going on?

Thank you.
 >> Stay informed about: Cannot delete or rename or moving directories 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Mon Nov 01, 2004 10:55 am
Post subject: Re: Cannot delete or rename or moving directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Download Process Explorer from www.sysinternals.com and find which
process(s) have a handle open to the filename in question.

It is these open handles that are preventing you from
deleting/renaming/moving directories, so you must get rid of all the open
handles. Usually, you can only kill the offending process to free up the
handle, but please be careful of the process you kill -- some may be system
critical, so you need to know what you are doing. You have been warned.

This problem actually has nothing to do with IIS. If you stopped IIS, all
its processes are gone from memory, along with their open handles.

Your previous problems with FTP was because someone used FTP to create
filenames that Explorer did not like -- so you had to use dir /x tricks to
delete it. That situation had nothing to do with open handles to those
files, so we're talking about apples/oranges here.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Fernando L. Arredondo" <FernandoLArredondo.DeleteThis@Yahoo.com> wrote in message
news:QZlhd.28482$lM1.6809@fe2.texas.rr.com...
Just wanted to add that the offending file is named APP. I cannot delete
it, yet with Windows Explorer, I can rename it!

I renamed it to TheFile, did a dir /x and saw THEFIL~1, next I rd THEFIL~1
and it says that the directory is not empty. Del THEFIL~1 doesn't work
either.

Can someone give me a hint as to what is going on?

Thank you.
 >> Stay informed about: Cannot delete or rename or moving directories 
Back to top
Login to vote
fernandolarred

External


Since: Oct 25, 2004
Posts: 17



(Msg. 5) Posted: Tue Nov 02, 2004 1:11 am
Post subject: Re: Cannot delete or rename or moving directories [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David, thank you for providing the mentioned suggestions. I appreciate it
but it did not work. I am at a complete loss. I've had the server running
for about 2 years and have found offending files before and wacked them.
Here is another description of what I tried today:

Before renaming, I first stopped ftp, then the website. There are no ISAPI
dlls running on the server by the way. The sites consist of static html
files. I tried to rename the entire site using Windows Explorer but I could
not. I focused on one particular site and got a message that a file was
open.



The offending file turned out to be a directory within the site.
Originally, it was called APP, then I renamed it to theDir with Windows
Explorer with no problem. Then I did the following:



* Performing dir /x within the directory displays absolutely nothing.
Appears to be empty.



* Trying to remove the directory with rd or del at the command prompt does
not delete it. I get a 'directory is not empty' message.



* I tried Process Explorer v8.52 and searched for the handle called theDir
and it was not open.



* Rebooting the server and trying the above again made no difference.



Please note that I have used the deletion commands above in the past with no
problem at all by determining the DOS file name and then removing it. I did
some experimentation with Process Explorer on my desktop PC and I was able
to determine if both files and/or directories were open. Unfortunately, I
had no success whatsoever on my remote (leased) webserver running W2000
Server and IIS 5.



If someone could provide some additional suggestions/comments, I would
sincerely appreciate it. For example, are there any other deletion
utilities that I should attempt to use?
 >> Stay informed about: Cannot delete or rename or moving directories 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]