Creating CoN folder in windows

faizulhaque's Avatar author of Creating CoN folder in windows
This is an article on Creating CoN folder in windows in Windows.
Rated 5.00 By 3 users
CON is a reserve world in windows operating system. that's why we can not create the folder named as CON.

But by command prompt we can do this

Code:
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"
following file names in Windows are reserved because they represent devices:
Code:
con, con.* -> the console
prn, prn.* -> the default printer, as a character device
aux, aux.* -> the default serial terminal, as a character device
lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9 -> the parallel ports, as character devices
lpt1.*, lpt2.*, lpt3.*, lpt4.*, lpt5.*, lpt6.*, lpt7.*, lpt8.*, lpt9.*
com1, com2, com3, com4, com5, com6, com7, com8, com9 -> the serial ports, as character devices
com1.*, com2.*, com3.*, com4.*, com5.*, com6.*, com7.*, com8.*, com9.*
nul, nul.* -> the NUL or "waste bit bucket" or "black hole for bits" or "/dev/null" device
Such files are considered to "exist" in all directories, so if you have a filename like "c:\temp\con", you're talking about the CON device, not about a normal disk file called "con". They're not listed using the "dir" command, or using APIs.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Well explained!
micman's Avatar, Join Date: Jan 2008
Go4Expert Member
I knew that certain keywords cannot be used to name folders in Windows,but a method to bypass even that restriction by means of command prompt is interesting !! Good !
faizulhaque's Avatar, Join Date: May 2008
Skilled contributor
okzzzz
7flint7's Avatar, Join Date: Jun 2008
Go4Expert Member
so what's exactly the point in naming a folder with CON?
-what's CON use for anyways?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by 7flint7
so what's exactly the point in naming a folder with CON?
-what's CON use for anyways?
You should read Magic Demistified and it will show you why CoN folder is important
7flint7's Avatar, Join Date: Jun 2008
Go4Expert Member
ok thx
7flint7's Avatar, Join Date: Jun 2008
Go4Expert Member
i read it and wow its incredible how many hidden things are in a computer, like those weird hidden games in excel and things like that. i bet there is plenty more.. it was interesting going through all that magic. i find the computer world to be very interesting and amusing,
some of the deepest knowledge of mankind all stored in those boxes (mathematically and engineeringly speaking) i believe we as human are the most complicated computers lol. any was thx for everything i love this web site. God bless
BSTU.UOK's Avatar, Join Date: May 2008
Go4Expert Member
well done.............