onLoad="MM_preloadImages('YourImage.gif','YourImage.gif','')"

Thursday, November 30, 2006

The 'CON' Folder

The word "con" is an abbreviation 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.

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 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.

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.

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.

Labels: , ,

0 Comments:

Post a Comment

<< Home

MySpace Layouts eXTReMe Tracker Click for Bangalore, India Forecast
cerebral palsy
cerebral palsy
Wikablog - The Weblog Directory Creative Commons License
This work is licensed under a Creative Commons Attribution2.5 License. <a href="http://www.bloginspace.com/" target="_blank"><img src="http://www.bloginspace.com/_assets/img/badges/bloginspace_145x100.gif" width="145" height="100" border="0" alt="BlogInSpace.com"></a> BlogAdvance Top Blogs
Whom do you think as the real man of recent tour of west indies cricket match?
Rahul Dravid
irfan pathan
M S Dhoni
Brian Lara
Bravo
Taylor
Anil Kumble
wasim Jaffer
R Sarwan
Shreeshanth
  
Free polls from Pollhost.com
Sign my Guestbook from Bravenet.com Get your Free Guestbook from Bravenet.com
Free Guestmap from Bravenet.com Free Guestmap from Bravenet.com
adopt your own virtual pet!
Free Greeting Cards from Bravenet.com Free Greeting Cards from Bravenet.com
Retrieving an E-Card?
Enter Card Pick-up ID below:
TriviaBucks.com - Win Money From Trivia www.coolcounters.com