Side-effects of "con" Console
Few days back I got an email which read:
Anyone who is old enough to have used DOS would know better. What a lame and ignorant thing to say that even Microsoft couldn't answer!
I was even more surprised to hear the same lame story on Yes FM Radio today. The show host has obviously got the same email and thought it was cool enough to share on air and went on saying "can you believe it, even Bill Gates doesn't seem to know why"!!!
Geeeez... talk about being clueless and ignorant!
Let me give you a clue. Almost everyone with a DOS background (I know, I'm one of those few l337s :) knows that "con" is the named IO device for the primary console.
So if you want to copy the output of a file to the console, you can type at a Command Prompt:
And if you want to create a new file with the contents you enter at the console, type:
key in your text content, type Ctrl-Z (or F6) and hit Enter to save the file.
This is one of my favorite ways to quickly create DOS batch files, and I've been doing this for years!
Now, getting back to the original email about not being able to create a folder named "con"; answer this: if you can create such a folder, what on earth would happen to my favorite
And oh, while we are at it, "prn" is also such an IO device (for local printer) and you can't create such a named folder either, and I am quite sure Microsoft (and Bill Gates) are quite aware of this unbelievable thing too!
This reminds me, another one of my DOS-days favorite is to use
An Indian discovered that nobody can create a folder anywhere named as "con"
This is something pretty cool... and unbelievable... At Microsoft the whole Team, including Bill Gates, couldn't answer why this happened!
Try it out yourself...
Anyone who is old enough to have used DOS would know better. What a lame and ignorant thing to say that even Microsoft couldn't answer!
I was even more surprised to hear the same lame story on Yes FM Radio today. The show host has obviously got the same email and thought it was cool enough to share on air and went on saying "can you believe it, even Bill Gates doesn't seem to know why"!!!
Geeeez... talk about being clueless and ignorant!
Let me give you a clue. Almost everyone with a DOS background (I know, I'm one of those few l337s :) knows that "con" is the named IO device for the primary console.
So if you want to copy the output of a file to the console, you can type at a Command Prompt:
copy file.txt conAnd if you want to create a new file with the contents you enter at the console, type:
copy con file.txtkey in your text content, type Ctrl-Z (or F6) and hit Enter to save the file.
This is one of my favorite ways to quickly create DOS batch files, and I've been doing this for years!
Now, getting back to the original email about not being able to create a folder named "con"; answer this: if you can create such a folder, what on earth would happen to my favorite
copy con file.txt command?And oh, while we are at it, "prn" is also such an IO device (for local printer) and you can't create such a named folder either, and I am quite sure Microsoft (and Bill Gates) are quite aware of this unbelievable thing too!
This reminds me, another one of my DOS-days favorite is to use
copy con prn and use the locally attached printer as a typewriter. ie. type something on the console and hit Enter to print that line on the printer. Amuse yourself with good ol' DOS tricks!







