Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack (1) Thread Tools Display Modes
Old 17-02-2007, 04:11 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
An Esoteric Geek
 
sridatta's Avatar
 
Join Date: Mar 2006
Location: Bangalore
Posts: 286
Default Tutorial : How to create CON folder in windows


Hello guys...

Many ppl dont know that they cannot create "CON" folder in windows. (Type 1)

Some ppl dont know why they cant create it? (Type 2)

Very few know that they can still create it someway.. but donno why are they supposed to do exactly like that..(Type 3)

Now, After reading this tutorial, you will become one of the rest
__________________________________________________ _________________________

Type 1 :

Try out creating a folder named CON or LPT or COM1

Now, you have become Type 2 category.
__________________________________________________ _________________________

Type 2 :

Not only CON, we cannot create any of these
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9 and more

The reason is that con, prn, lpt1..lpt9, etc are underlying devices from the time dos was written. 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.

So Now, Try this...

Open the Command prompt by Start -> Run and typing cmd

Code:
C:\> md \\.\c:\con
Now, Open My Computer and browse through the path where you created CON folder... Surprising.. ?? Yeah.. you have created it successfully

Now, try to delete the folder from My computer

OOPS!!! You cant delete it...

Now, try this in command prompt console

Code:
C:\> rd \\.\c:\con
Yeah!! You did it...
__________________________________________________ __________________________

Type 3 :

Well, let us now have a glance at how we were able to create it...

It is just because of the UNC Path (http://en.wikipedia.org/wiki/Univers...ng_Convention). The Universal Naming Convention, or UNC, specifies a common syntax to describe the location of a network resource, such as a shared file, directory, or printer.Since, these conventions did n't exist under pure DOS, they are not backward compatible. The UNC syntax for Windows systems is as follows..

\\RemoteHost\sharedfolder\resource

where RemoteHost is the computer name / IP address of the computer that you wish to connect through remotely for accessing shared folder. The rest is the path.

(Here \\remotehost\drive:\con doesn't make sense anyway, because without having a process on the remote host, there is no current 'console'). It would be a security hazard as well, having the serial and parallel ports accessible for everyone who is allowed to read or write in any single directory.

The "." in the command \\.\c:\con suggest the local server. Now, you are pointing to your own computer. since, you have all privilages on every folder of ur computer, you can easily create it.
__________________________________________________ _____________________________

Type 4 :

Ofcourse, Now, u r of type 4. What else i can say :/
__________________________________________________ _____________________________

P.S : Please post your comments..
sridatta is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-02-2007, 04:24 PM   #2 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Tutorial : How to create CON folder in windows

Type 5:
Very old stuff..
Pathik is offline  
Old 17-02-2007, 04:28 PM   #3 (permalink)
An Esoteric Geek
 
sridatta's Avatar
 
Join Date: Mar 2006
Location: Bangalore
Posts: 286
Default Re: Tutorial : How to create CON folder in windows

may be its new for some others...
sridatta is offline  
Old 17-02-2007, 04:40 PM   #4 (permalink)
Human Spambot
 
Arsenal_Gunners's Avatar
 
Join Date: May 2005
Posts: 3,116
Default Re: Tutorial : How to create CON folder in windows

i know windows does not allow this to be made but why the heck somebody will want to create a folder named con
Arsenal_Gunners is offline  
Old 17-02-2007, 04:44 PM   #5 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Tutorial : How to create CON folder in windows

well there r many reasons for that...
1. TP
2. suppose a movie called CON releases... now u wd obviously store it in a folder called CON na ????
Pathik is offline  
Old 17-02-2007, 04:45 PM   #6 (permalink)
Human Spambot
 
Arsenal_Gunners's Avatar
 
Join Date: May 2005
Posts: 3,116
Default Re: Tutorial : How to create CON folder in windows

whats TP
Arsenal_Gunners is offline  
Old 17-02-2007, 04:50 PM   #7 (permalink)
I see right through you.
 
Sykora's Avatar
 
Join Date: Sep 2005
Location: Chennai
Posts: 597
Default Re: Tutorial : How to create CON folder in windows

Quote:
Originally Posted by vimal_mehrotra
whats TP
I'd guess something like "Time Pass"? I can't think of anything else.
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
Sykora is offline  
Old 17-02-2007, 04:57 PM   #8 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: Tutorial : How to create CON folder in windows

well TP can mean only two things-
1.Time Pass
2.TelePortation
u guess.....
Pathik is offline  
Old 17-02-2007, 04:58 PM   #9 (permalink)
An Esoteric Geek
 
sridatta's Avatar
 
Join Date: Mar 2006
Location: Bangalore
Posts: 286
Default Re: Tutorial : How to create CON folder in windows

Unfortunately You cannot directly copy any files/folders into it.. and you cant even directly delete the con folder.. Ofcourse you can copy them using DOS command prompt using

copy abc.txt \\.\c:\con

Its just to fulfill our curiosity on CON folder.. Many of my frenz still percieve that they cannot create CON folder.. so, just to clarify that.. i posted this..

Moreover, we also get to know about the UNC path..
sridatta is offline  
Old 19-02-2007, 02:30 PM   #10 (permalink)
Right Off the Assembly Line
 
Sand's Avatar
 
Join Date: Feb 2007
Posts: 11
Thumbs up Re: Tutorial : How to create CON folder in windows

interesting one sridatta i always wanted to know why even though it is time pass it is still nice to know.
__________________
Evolution taught me that 'Sub kuch Chalta Hai' as long as it is 'Survival of the Fittest'! Belief in God taught me to treat everyone with kindness & respect, even if I am the fittest!
Sand is offline  
Old 19-02-2007, 07:51 PM   #11 (permalink)
In The Zone
 
::cyborg::'s Avatar
 
Join Date: Oct 2005
Location: NEW DELHI
Posts: 436
Default Re: Tutorial : How to create CON folder in windows

@sridatta well interesting post friend
__________________
:)) - KEEP SMILING
::cyborg:: is offline  
Old 21-02-2007, 10:45 PM   #12 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2007
Posts: 41
Default Re: Tutorial : How to create CON folder in windows

Thx Nice Information
Prajyot is offline  
Old 22-02-2007, 02:07 AM   #13 (permalink)
œ∑´®†¥¨ˆøπåß∂ƒ©˙∆˚¬Ω≈ ç√∫˜
 
the.kaushik's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 1,046
Default Re: Tutorial : How to create CON folder in windows

though old one but prety nicely explained.. nice post
__________________
Blogging @ http://classictutorials.com
the.kaushik is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.thinkdigit.com/forum/tutorials/49781-tutorial-how-create-con-folder-windows.html
Posted By For Type Date
Welcome to Sridatta's Home Page This thread Refback 08-07-2010 04:25 PM

 
Latest Threads
- by Tenida
- by clinton

Advertisement




All times are GMT +5.5. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2