I have some files that contain colon character in the filename (eg. 1d67c0d23e859ed4a259749e4a720d9e:default-sink). When I try to remove them from command line with the command:
c:\backup> del /F *.*
I get “The system cannot find the file specified.” for each file. If I specify an individual file:
c:\backup> del /F "1d67c0d23e859ed4a259749e4a720d9e:default-sink"
I get “The filename, directory name, or volume label syntax is incorrect.”. If I try to use rd on the parent folder I get
How can I remove these files?
This worked for me:
- Rebooted PC
- Then I was able to select and delete the file
Close all the files, if any opened, that are saved in the drive which is containing such files. Now, Open the drive properties.
“My Computer” -> “Right Click on the this drive” > properties
Then, go to “Tools” tab and click “Check now” under ‘Error checking’ label.
This will unmount your drive and will scan the complete drive for errors, eventually it will delete such files with illegal names. On finishing it will show a messages saying some files were fixed.
I successfully deleted such files from my external hard disk.