Fun Fact #4


Here is a way to have fun with Microsoft Windows.

Did you know that you cannot Create a folder named CON anywhere on windows? Try it. . .

Were you able to create the folder? On windows 7 , It gives an error like this :

Why? Is it magic? Is it a Bug?

Actually no, the answer is that no it’s not a bug or some magic either. and, In general you can’t create any file named CON on windows either. The reason behind it is pretty simple – CON is a reserve name and it stands for CONsole – i.e. the screen on which Everything is displayed, so by creating a file named CON you would be able to access the screen directly by editing the file named CON which is not wanted. So this name is disabled by Microsoft.

But, there is a way by which you can access the Console, or at least see what is in it

Go to command prompt, and type

>COPY readme.txt CON

where, readme.txt is any text file containing some data. The file must be created in the same directory from which you are giving this command.

What this will do is, it will copy the contents of readme.txt file to the console and it would be visible on the command prompt.

Apart from CON there are some other names too which are not allowed on Windows like – COM1, COM2, LPT1, LPT2,PRN,NUL  as these are used for serial ports, modem ports etc.

About srivassumit

IT Professional, nerd, music lover, Gamer.

Posted on October 22, 2011, in Facts and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: