Get me outta here!

Tuesday, 10 January 2012

Secret behind the "CON" folder problem


Hello Friends,

Many of us have often tried to make folder with name "CON" but have been unsuccessful and an error saying "The specified device name is invalid"

Well, Now I'll tell you all why its not possible.
In MS-DOS, several special "device files" were available to aid in performing certain tasks, such as clearing the screen or deleting extraneous output from a program. In order to maintain backwards-compatibility, all versions of Windows up to and including Windows 7 will refuse to allow you to create a file with these "reserved" device file names.

The following file names are reserved:
CON
PRN
AUX
NUL
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
LPT1
LPT2
LPT3
LPT4
LPT5
LPT6
LPT7
LPT8
LPT9


But don't worry I'll teach you to make a folder named "CON" but more on that later.

-Kanishk

0 comments:

Post a Comment

Due to the permanent shut down, I rarely visit the blog. Don't expect answers to your queries very soon.
-Kanishk