Hmmm... I'm wearing my skeptical face on this. If RD /S /Q says the file is in use the DELTREE should not be able to delete it either. They both do operate on the same principal. Perhaps by the time you got around to using DELTREE the object was no longer in use.