Cannot delete a folder

245 pts.
Tags:
Microsoft Windows Server 2003
A robocopy script created a folder only a few folders deep that won't delete. The older has no security tab and no ownership. Inside the folder I can create folders and files. However when tying to delete or remove it I get " cannot copy file: Cannot read from the source file or disk". I have tried the command line delete options \?, chkdsk, taking ownership of the file and safemode and all seem to fail. Pretty much everything in KB 320081 was tried. Does anyone have another solution?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Drop to dos command line and use either of these two commands:

RMDIR [/s] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S removes all directories and files in the specified directory in addition to the directory itself. Good for removing full directory trees.

/Q Quiet mode – no confirmations.

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Tbitner
    Can you delete it if you boot from a CD and examine the disk? Maybe the group policy is hiding the tabs, can you login as Domain Admin and delete it? Is this file local on your machine or on a server?
    510 pointsBadges:
    report
  • EastCoastGuy
    This is on a server. The problem is it created a duplicate folder with the same name within the same directory. I briefly tried safe mode but had no luck. I am a domain admin and still cannot delete it. Booting from the CD may not work since this is on san disk and needs HBA drivers to be loaded.
    245 pointsBadges:
    report
  • Produkt
    Here's a silly answer??? try renaming the folder and then try to delete it. :)
    30 pointsBadges:
    report
  • EastCoastGuy
    I tried all of those. I even ran Chkdsk and had no luck. Chkdsk runs really slow with 89 million files. For now we reformatted the volume and started over.
    245 pointsBadges:
    report
  • Ikara1
    Since you have tried most of the obvious ways that might work for you. Maybe you would like to try a small program called "MoveonBoot". from GiPo A feature that is handy is the menu item it places in your R/click menu. Delete File on next Boot.
    20 pointsBadges:
    report
  • EastCoastGuy
    What worris me here is the fact Windows created a folder that has the same name as another folder. In our scenerio we have C:\folder and C:\folder. Both have different contents and the bogus one cannot be deleted or renamed. I'm worried a delete on boot would delete the wrong folder.
    245 pointsBadges:
    report
  • Jonsjava
    It's simple enough to make 2 folders "with the same name" in xp. In this example, lets make a folder that has no name and no icon first, right click on the desktop go to New -> Folder clear out "New Folder" from the name (and whatever else they put there) Now, for the name: hold down <ALT> then type "0160" Next, right click on the new "no name" folder, and go to Properties. go to Customization now, click on "Change Icon..." scroll to the right, until you come across a blank area (there is 3 next to the "Padlock", after the Star) click on that blank space. click "OK" Click "Apply" close the properties box Now, the folder is invisible. Everybody from the good old DOS days remembers the "hidden character" and we also remember how that went away with windows 95. Well, the hidden character back then was created by holding down <ALT> and pressing "255". Windows 95 turned that into a "_" so we could see it. The new "hidden character" is generated with the "<ALT>0160". For those who don't know: a file system does not know how to allow folders to actually exist in the same directory with the exact same name, but the work around would be for me to create a folder named "Test" and then create a folder named "Test<ALT>0160", which would make a folder like "Test", but it has a hidden character at the end.You wouldn't be able to detect the last character, because the system just won't show it.
    225 pointsBadges:
    report
  • EastCoastGuy
    Ah, Jonsjava you made me think. A trailing space caused the duplicate folders. The GUI doesn't show it. My solution was: rmdir "\\?\c:\path_to_file_that contains a trailing space.txt " Cause 5 in KB 320081 has this info. The full URL is = http://support.microsoft.com/?kbid=320081 Thanks,
    245 pointsBadges:
    report
  • AdamGrat
    you may use longpath tool to delete the folder.
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following