BLACKLIST_MEMBER

Well-known member
  • Feb 9, 2008
    37,854
    14,812
    113
    127.0.0.1
    can u do this ???

    Try to create a folder in Windows with either of these names--
    "con" or "nul" or "Aux" or "Lpt1".
    Windows will not let u create ....

    This s coz these refer 2 some well known ports....
    -con corresponds to the console
    -Lpt1 corresponds to printer and so on....

    well dat was common but hw bt this ? Try these more

    CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9
    :rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl::rofl:
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    From one of my earlier posts...

    x-pert said:
    Maybe an Indian found it by coincidence. But we, Sri Lankans have the explanation....

    Exp 01.
    You can rename folders as "con"
    Try this: md \\.\c:\con

    Exp02.
    Yes, you can't create a folder called CON. Because Con = console (A reserved word in the Windows OS. The same as the phenomena of disallowing to create a variable called int in many programming languages.

    In Exp 01, it actually creates a folder called <space>con.

    to delete a con folder: rd \\.\c:\con



    Not only con, but you have many reserved words like: CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL ;)

    Source: Microsoft ;)
     

    OscarNonis

    Member
    Jan 12, 2008
    959
    0
    0
    Las Vegas - USA
    I heard about this matter about 10 years ago.

    This is DAMN old news

    'con' is a reserved word from the old DOS days, simply meaning 'console'. If you wanted to create a new text file in DOS you could type 'copy con newfile.txt' meaning copy from the console to newfile.txt. This would let you type some lines and when you ended the file with ^Z (DOSish for 'end of file') you would have a file called newfile.txt containing whatever you wrote in the console. This is indeed still possible in the Windows XP console, and can you see what mess it would cause if you let files or folders have the name 'con'? What would 'copy con newfile.txt' then mean? BSOD?

    this is a list of other DOS devices that can't be used as folder names:
    CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9.