filename not valid – Password Recovery https://www.top-password.com/blog Provide useful password recovery tricks, guides and software Mon, 16 Mar 2015 04:20:45 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 Can’t Delete Files Containing Special Characters in Windows https://www.top-password.com/blog/cant-delete-files-containing-special-characters-in-windows/ Mon, 16 Mar 2015 04:16:07 +0000 http://www.top-password.com/blog/?p=4778 There might be situations where you need to delete some folders or files contains special characters in the filenames. When you try to delete, move or rename such a folder/file from Windows Explorer, you’ll receive the error message “The file name you specified is not valid or too long“.

unable-delete-file

Or get a similar error message “The filename, directory name, or volume label syntax is incorrect” when you try to delete the folders/files from Command Prompt.

filename-syntax-incorrect

I have tried many third-party softwares such as unlocker, 7-Zip File Manager, and other tricks discussed in various forums. But none of them work. This problem is very tricky because a set of special characters can’t be used in filenames, such as
\ / : * ? " < > |

Almost all Windows apps are unable to process these stubborn files. To get around this problem, you need to use a Ubuntu Live CD or Linux distribution. In my example, I boot my computer from Ubuntu Live CD and I can then easily create, open, rename or delete any folders or files with special characters.

ubuntu

Almost anything (only the / character is not allowed) will be allowed in the filename after booting to Linux or Ubuntu. Using this method, you can delete or rename any Windows folders/files located in your hard drive.

]]>