PDA

View Full Version : What's wrong with 'con'?



Tek
11-09-2005, 02:54 PM
Freaky trick of the day:

Try creating a folder (under Win2K/XP) called 'con'. Try even at the command prompt. I bet you can't! :D

Any programmers here have any idea why? Is this a reserved device name to Windows?

Edit: Yes I did find that it is a really old reserved device name for DOS. You could send output to the console, which meant using 'con'.

Example: copy test.txt con

I guess that answers that...

rhosk
11-09-2005, 02:56 PM
Good find, never knew that. I remember DOS and "copy con" (emulating console), but the rest escapes me - I'm way too old :eek:

gbrown
11-09-2005, 03:26 PM
Go to the dos command prompt.

Type in:

copy con kill.me

Type something in.

Hit Control-z

What you typed is in "kill.me".

Heh, heh. Back in MY day REAL MEN used "con" all the time :D .

GcB

Intrigued
11-09-2005, 05:34 PM
Go to the dos command prompt.

Type in:

copy con kill.me

Type something in.

Hit Control-z

What you typed is in "kill.me".

Heh, heh. Back in MY day REAL MEN used "con" all the time :D .

GcB

[BellyLaughterOn]

You just'a be CON'in me aint yee?

[BellyLaughterOff]