• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 134
  • Last Modified:

Cannot delete file

Hello there, I have a major issue trying to delete a folder (let's call it Folder X) and cannot find the solution.  Folder X is on my domain controller and is saved in a path that includes long folder names (more than 8 characters and includes spaces) .  When I try to delete Folder X, nothing happens - it just hangs.  I cannot see the proerties for Folder X when I right-click on it from My Computer.  When I try deleting the folder that Folder X is housed in, I get a error message that says "Cannot delete Folder X: Cannot find the specified file.  Make sure you specifiy the correct path and filename"

I am logged on to the DC as the Administrator and I do not have the right to view the properties for Folder X nor can I delete it because the OS says that it cannot find the file.  Any suggestions on how to go about deleting Folder X?

Thanks a bunch!

Steve
0
caribguy76
Asked:
caribguy76
  • 4
  • 3
  • 2
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Run CHKDSK on the drive where the folder is... could be there's something corrupt.
0
 
caribguy76Author Commented:
Running chkdsk would require me having to reboot in order to run, correct?  Or can I run from the command prompt?  This is on the domain controller and I cannot bring it down during the day to check for the pesky folder.  I'm new to the job and in the process of learning.

Thanks
Steve
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
Probably.  At the least it would force users to disconnect from that logical drive.  You can try to run it - if you need to reboot, it will tell you that it's set to run at the next boot and SHOULD NOT autormatically reboot.
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
caribguy76Author Commented:
Ok. I will try doing this later on today as it is not a good time to disconnect my users from the drive.  I'll let you know how it goes.

Thanks
Steve
0
 
Nirmal SharmaSolution ArchitectCommented:
0
 
caribguy76Author Commented:
After extensive searching and troubleshooting, I was able to fix the problem.  Because the path to Folder X was so long, explorer.exe could not handle it (it was more than 255 characters).  To get rid of the folder, I had to map the folder that Folder X resided in to a drive (I mapped it to Drive W).  This tricked explorer.exe into believing the path was much shorter than it was.  After mapping it, I was browse to Drive W and delete Folder X.  Thanks to all for your suggestions.
0
 
Nirmal SharmaSolution ArchitectCommented:
Thanks! Glad its working and you solved it.

Cheers
SystmProg
0
 
caribguy76Author Commented:
And now that I've solved it, you better believe that I'll never forget how to take care of it should it ever happen again.  Darn explorer.exe  :-)

Thanks
Steve
0
 
Nirmal SharmaSolution ArchitectCommented:
Hehe...sometimes it happens afterall we are using computers and not books :-)
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now