Home > Articles > You know???

You know???

you cannot create a folder named “con” or “prn” in windows… try to create one and let me know the result….

This will happen so because….

Device names such as COM1, CON or LPT1 are reserved words, and they can’t be used as folder or file names

If a read or write operation is attempted to a path whose name contains multiple DOS device names, it will cause Windows to attempt to access invalid resources

not only these words..

these words also cannot be used -
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9

Categories: Articles
  1. January 7, 2007 at 9:24 pm | #1

    Unable to create a folder named “con” or “prn” in windows

    In order to ensure backward compatibility with DOS, Microsoft has reserved keywords like the following”CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9″
    These Names Represents Device Names Which were used in the MS-DOS Days..
    Example : Con Represents “CONsole”
    You Can Create Folder Like ‘con’ or any other with the following command in the dos prompt
    example : mkdir \\?\C:\con
    And Remove it with the following command
    example : rmdir \\?\C:\con [/m

  1. No trackbacks yet.