Tuesday, December 23, 2008

How Microsoft missed this!

Nobody can create a folder anywhere named as “con” , “PRN” , “LPT1” , “LPT2” , “LPT3” , “COM1” ,”aux” , “COM2” or “NUL”

This is something pretty cool...and unbelievable... At Microsoft the whole Team, including Bill Gates, couldn't answer why this happened! It is a standard device name in DOS. You cannot use these too

In addition, the following file names are pre-assigned to certain devices.

CON:

Console (screen display for output and keyboard for input)

PRN:

Printer. This is usually LPT1.

LPT1:

The first parallel printer/port. The printer device may be used only as an output device.

LPT2:

The second parallel printer/port (for output only).

LPT3:

The third parallel printer/port (for output only).

COM1: or AUX:

The first asynchronous communications adapter port.

COM2

The second asynchronous communications adapter port.

NUL:

A nonexistent device to avoid the generation of output from programs.

Try it out yourself...

Source: https://www.nilebits.com/blog/2009/01/how-microsoft-missed-this/

5 comments:

  1. i think as this keywords for drivers defination and if u create New Folder has this names it may make ambigious for operating System

    ReplyDelete
  2. what's this blog aim to sorry i didn't got the massage

    ReplyDelete
  3. I don't think they missed it, it makes alot of sense to me, those names are reserved! its that simple I dont find it confusing at all..

    ReplyDelete
  4. Yes u r right
    but and i have the solution for this problem

    if any one want it plz contact me


    Omar Mostafa
    Software Developer

    ReplyDelete
  5. Those names are put for bw comp. with older system.

    Although you can enforce the creation of such folders by doing it as if you're doing them through network path

    ReplyDelete