Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Windows (http://www.go4expert.com/articles/windows/)
-   -   Creating CoN folder in windows (http://www.go4expert.com/articles/creating-folder-windows-t11572/)

faizulhaque 23Jun2008 16:30

Creating CoN folder in windows
 
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 25Jun2008 00:14

Re: Creating CoN folder in windows
 
Well explained!

micman 25Jun2008 22:26

Re: Creating CoN folder in windows
 
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 26Jun2008 16:17

Re: Creating CoN folder in windows
 
okzzzz

7flint7 27Jun2008 03:31

Re: Creating CoN folder in windows
 
so what's exactly the point in naming a folder with CON?
-what's CON use for anyways?

shabbir 27Jun2008 09:05

Re: Creating CoN folder in windows
 
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 28Jun2008 08:48

Re: Creating CoN folder in windows
 
ok thx

7flint7 28Jun2008 09:29

Re: Creating CoN folder in windows
 
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

shabbir 3Jul2008 10:56

Re: Creating CoN folder in windows
 
Nomination for article of the month for June 2008

BSTU.UOK 16Jul2008 07:05

Re: Creating CoN folder in windows
 
well done.............


All times are GMT +5.5. The time now is 20:31.