English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

8 answers

It is a special name in MS-DOS and Windows - one which refers to the system console. If a console application writes to the file "con", whatever is written there will appear on the screen. It is roughly equivalent to the special file /dev/tty in Unix.

Since it is a special file name, it already exists - and if it exists, you cannot create it - neither as a file nor as a folder.

Other such special names are NUL, LPTn and COMn (where "n" is a digit). They refer to the "no device" (/dev/null in Unix), the printers and the communication ports respectively.

For instance, a convenient way to suppress the output of a console application is to redirect it to NUL:

someprog >nul

All these special names have little meaning nowadays when most people use GUI programs, but they still exist as a legacy and cannot be created.

2006-11-16 22:44:42 · answer #1 · answered by Vesselin Bontchev 6 · 0 0

As DOS users will tell you, The words CON, PRN, LPT etc. have special a meaning in DOS and are called "Reserved Words". The user is forbidden from having files or folders whose name is the same as a reserved word.

Windows is a "shell" or "program" running on top of DOS. So, you cannot have user defined objects in Windows that have the same name as a reserved word in DOS.

2006-11-16 22:59:07 · answer #2 · answered by Bhargav 3 · 0 0

"con" is an abreviation for "console". Depending on what you are trying to do, e.g. program the creation of a folder called 'con', you may get an error. This is because 'con' is a reserved name for writing to an output reserved for the console, typically the operator's screen.

Hope this helps!

2006-11-16 22:33:19 · answer #3 · answered by cfpops 5 · 0 0

may be windows is case sensitive. or con maybe there as a variable in the windows coding

2006-11-16 22:47:24 · answer #4 · answered by g4genius 2 · 0 0

"con" is a system file..names of system files cannot be used as folder names...None of the system file names could be used..try using "prn" tht is another example.

2006-11-17 02:02:29 · answer #5 · answered by blacksafari5004 1 · 0 1

These are the reserved words which cannot be used

2006-11-16 22:37:49 · answer #6 · answered by Fun 2 · 0 0

its a part of words which r used by system.. and m$ just restricted using them..
other words include lpt1 etc.

2006-11-16 22:31:24 · answer #7 · answered by T^X 2 · 0 0

i have tried it and it is opening in my computer

2006-11-16 22:28:47 · answer #8 · answered by Anonymous · 0 0

fedest.com, questions and answers