Please help me delete a file? [duplicate]
I have a movie named Con Man. Apparently, in Windows, you cannot have a file name with the name CON in it. Can anyone please help me delete it?
It is stored in F:\Movies\Con Man The name of the file that I want to delete is Con.Man.2018.720p.WEBRip.x264-[YTS.AM]
I know there are a lot of similar issues but I am not able to apply them that is why posting here. Thankyou
PS :: I am a noob!
Edit: Found this on the internet but cant work it out https://www.itechtics.com/how-to-createdelete-a-folder-named-con-in-windows/
- Open Command Prompt
- Type
del "\\.\F:\Movies\Con Man\Con.Man.2018.720p.WEBRip.x264-[YTS.AM].mp4"
then press Enter
This works because the \.\ prefix will allow access to the drive directly without going through some drivers which prevents access to con files.
The error message occurs appears when the file you are trying to delete is given a reserved name. Using reserved names is prohibited by Microsoft and should not be trifled with.
The Microsoft Naming Conventions provide that files or folders on your system should not be named CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. This is because these names are reserved names in the Windows operating system, meaning they are used for a specific purpose by the Windows operating system and should not be used anywhere else. You should also avoid following the above names immediately by an extension, for example, NUL.txt. In case you want some more details, you can refer to this article on Microsoft’s website.
Source