CON - Windows

In a Windows PC, it is not possible to create a Folder called "CON" anywhere. The email fwd that I received also says that this was found by an Indian and also that none from the Microsoft team were able to give an answer to this. Strange it is.

---

Well, finally I did get an explanation for this and thats again thro an email fwd.

Try creating folder with any of the following 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 It won't allow you to do so.

The reason:
General rules for creating names for directories (and files) on the Windows platform include the following: Do not use device names, such as aux, con, lpt1, and prn, as file names or directory names. The following reserved words cannot be used as the name of a file: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also, reserved words followed by an extension—for example, NUL.tx7—are invalid file names.

If you want to create a folder by CON, then use the following steps: In the command line prompt, try this out u will get con directory - md \\.\\c:\con

To delete that folder, try this out - rd \\.\\c:\con

1 comment:

Anonymous said...

wow!!! that's some news!! :)