RD doesn't work with /Q /S switches

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

We deploy our website and attempt to delete the previous copy under Intepub
with the RD command. We use the /Q and /S switches yet get this error
message:
<path> - The directory is not empty. We are a little confused at what this
issue could be. This is an ASP.NET app and there are no hidden or system
files in the directories.

Any help would be greatly appreciated!

~Thanks
 
Is there an open file handle to that directory -- if so, it will prevent RD
from working (as expected -- if you can RD at-will, you'd cause surprise for
the other guy holding the open handle).

You can need to use a tool like HANDLE.EXE or Process Explorer from
www.sysinternal.com to determine what process has an open handle.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
Hi,

We deploy our website and attempt to delete the previous copy under Intepub
with the RD command. We use the /Q and /S switches yet get this error
message:
<path> - The directory is not empty. We are a little confused at what this
issue could be. This is an ASP.NET app and there are no hidden or system
files in the directories.

Any help would be greatly appreciated!

~Thanks
 
David,

I followed your advice and ran handle.exe. I did it immediately before and
after the uninstall of the app (til the error on removal). Strange...the
results didn't show any handles on files under the inetpub\wwwroot
subdirectory for any of the w3wp.exe processes. That was an excellent idea,
but I an perplexed? Ever hear of this before?

Thanks, ~Pat
 
Back
Top