Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have encountered a problem from time to time but have not been able to resolve it without formatting.

I have a directory called d:\DotNet that I want to delete. I cannot because inside this folder there is another folder called: T4 Code generation and Misc.

When I try to deleting or access T4 Code generation and Misc., I get the following error:

Could not find this item

This is no longer located in D:\DotNet. Verify this item's location and try again.

Hopefully this is a simple fix.

share|improve this question
up vote 7 down vote accepted

Try the following:

  1. Open CMD and CD into the location where the file is at
  2. Type dir /a /x /p which will show you the hidden files and the 8.3 filenames which usually look like: C:Progra~1
  3. Since it is a folder you want to delete, run rd /s <8.3name>
share|improve this answer
Thank you so much!!! I have seen this problem several times over the course of YEARS. – RBZ Sep 19 '12 at 0:21
Your welcome, just glad it helped. I had this and it took me forever to figure it out so I am happy to be able to share it. – JMeterX Sep 19 '12 at 14:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.