Sunday 4 November 2012

why can not we create con folder in windows?


A Reason Behind the Con Folder Creation in Windows

We all know that we can't create Con, Folder in windows. not only con but also " PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9 and more".

Here i am going to explain why you can not create the con folder in windows.

Reason:

We can not create folder with con,aux, nul because these are reserved keywords used by DOS. so if u r allowed to create such folders, there will be an ambiguity in where to write data when the data is supposed to go to the specified devices. In other words, if i want to print something, internally what windows does is -- it will write the data to the folder prn (virtually u can call it a folder, i mean prn, con, etc are virtual folders in device level). So if we are able to create con folder, windows will get confused where to write the data, to virtual con folder or real one.

Keywords and Their corresponding Functions:
Reserved Keywords Function
CON Keyboard and Display
PRN System list device, usually a parellel port
AUX Auxiliary Device,usually a serial port
NUL Bit-Bucket Device
A:-Z: Drive Letter
COM1 First Serial communications port
COM2 Second Serial communications port
COM3 Third Serial communications port
COM4 Fourth Serial communications port
LPT1 First Parallel printer port
LPT2 second Parallel printer port
LPT3 Third Parallel printer port

Posted by R2blog. R2blog auto post for blogspot. Download at http://R2blogger.blogspot.com


0 comments:

Post a Comment

 

My Geek Tricks Copyright © 2011 | Template design by O Pregador | Powered by Blogger Templates