Question:
Try this is interesting.In win xp try creating a folder named con.This doesnt works. Can anyone explain why.?
Arun S
2006-08-27 06:53:09 UTC
Try this is interesting.In win xp try creating a folder named con.This doesnt works. Can anyone explain why.?
Three answers:
anonymous
2006-08-27 06:57:06 UTC
There is a hidden system folder called con that is why!

Take care!
Uninformed hence not consenting
2006-08-27 07:08:04 UTC
It probably has something to do with the fact that 'con' can be the source of input for some character-based programs. The letters 'con' refer to the console, being the keyboard.



For example, try this:

- Open a cmd box (Start, Run, cmd)

- And enter the following:

copy con

- Everything that is entered after the previous line will be echoed when you press enter... Until you press CTRL-Z or CTRL-C.



In other words, 'con' is reserved to address the console.
freebiefrend
2006-08-27 07:07:47 UTC
This actually is a unix-like feature. DOS device drivers are accessible like normal files, i.e. the everything-is-a-file philosophy. CON is the equivalent of /dev/tty, NUL of /dev/null, COM# of /dev/ttyS#, LPT# of /dev/lp# and CLOCK$ corresponds to /dev/rtc (PRN is an alias to LPT1, AUX is COM1). Every character device can be opened this way, block devices (which are assumed to be FAT formatted...) are named A: to Z:, as you will know. Many pseudo character devices (drivers which had to be loaded as drivers but were no character devices, like EMM386, HIMEM.SYS, ..) had forbidden characters like '*' in their device names to be hidden from the user.











We can do this by following method

STEP1: goto command prompt

STEP2: type in prompt e:\> "mkdir \\.\e:\con"

STEP3: verify by typing "dir \\.\e:\con"

STEP4: delete the file or folder "rmdir \\.\e:\con"


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...