Home > Random > The filename, directory name, or volume label syntax is incorrect

The filename, directory name, or volume label syntax is incorrect

This even I was clean up one of my external USB drives when I encountered an error trying to delete some directories. As it transpires some of the files and directories within the folder I was trying to delete had invalid names, which was preventing the files from being deleted.

image

I tried to delete the files using the dos command del *.* but this gave the same error.

image

I tried Malwarebytes “File Assassin“ tool, but this too failed.

After a some googling I found the answer… you need to run chkdsk /f on the folder location that is giving you the error.

When presented with the option to Convert Folder to File select Yes.

When presented with the option to Convert Lost Chains to File select Yes.

image

I hope that this will save you some time if you get the same issue as I encountered. Admittedly I still am unsure as to what may have caused the file names to have been become corrupted. My theory is an error occurred while changing a file name from the Long File Names format to it’s 8.3 File Name format.

Categories: Random Tags:
  1. Aadeel
    February 20th, 2010 at 10:47 | #1

    Absolutely Brilliant! I’ve been trying to sort this out for sometime now and thank god you came up with this. Cheers my friend

  2. Rod
    July 28th, 2010 at 07:39 | #2

    Fantastic ! Thanks a lot, you saved my life. Got some serious troubles with corrupted directories on an usb drive, could not erase anything. This DOS command worked perfectly.

  3. T.R. Wolfe
    April 12th, 2011 at 01:23 | #3

    This worked. Thank you very much! Been over a year trying to fix a problem like this. THANKS!

  1. No trackbacks yet.