windows folder creation surprise

Submitted by venkatesh
on October 10, 2005 - 4:53am

It was dicovered that nobody can create a folder named as "con" in windows.
This is something pretty cool...and unbelievable...
Note : This should be through & in windows only.
If any one have solution or reason why it happens , let me also know please.

con

Venu Reddy (not verified)
on
September 10, 2007 - 10:23am

nice. its working. thank you..

con folder

sucheta (not verified)
on
September 14, 2007 - 11:07am

hello vishnu

i tried your method but it does not work in command prompt.
the error is:
"an error occured while processing \\"
"netwrk path not found"
did i type it rite, md\\.\\c:\\con in cmd prompt?
pls reply

thnks
sucheta

how to create the con folder

Vineet Pasricha (not verified)
on
October 11, 2007 - 9:40pm

1. go to root directory like C:\ or D:\
2. type md\\.\\c:\\con ....(here is done)

create windows con folder

Manoj® (not verified)
on
June 10, 2008 - 12:13am

go to some linux version and create it
that works fine
but u cant delete it in window explorer

Con folder created as per Vineet Pasricha

Anonymous (not verified)
on
August 15, 2008 - 1:07pm

Con folder was created but not able to delete.

unable to delete the folder

Tripathy (not verified)
on
September 28, 2007 - 8:29am

Hi Vipul
It worked fine but when i am going to particular drive and try to delete the file it is saying "unable to delete can not find or file which u specified".even when i give rmdir in CMD prompt its not happening.To delete it i have to give the same path which i have given while creating.

My question out here is do you think really the folder has been created in the specific folder like c or d or etc etc if yes why can not we delete the same directly.

yes fine and how can you del

Anonymous (not verified)
on
November 28, 2007 - 4:06pm

yes fine

and how can you del or erase it?
is just a virtual folder.

tell us a way to del it

I created the Con folder in one of my drives

Anonymous (not verified)
on
December 23, 2007 - 11:26pm

Thanks for giving the idea to create at the same time i want to know how to delete that folder and the files present in it. When i wished to delete the folder, it just gave me a warning to make sure the pathway for deletiing.

Reply ASAP

With regards

SM.

Hi How to delete this folder

Anonymous (not verified)
on
February 18, 2008 - 12:01am

Hi

How to delete this folder

enjoy

vinay singh (not verified)
on
May 21, 2008 - 12:39am

C:\> rd \\.\c:\con

this way you can also create paths longer than 256 characters

sileNT (not verified)
on
May 23, 2008 - 7:47am

This way (\\.\...) you can also create paths longer than 256 characters.

Then, they are not accessible (not possible to view, remove etc.) via standard Windows mechanisms (C:\some\long\path).

Another trick! ;)

vishnu panchal is a dickhead

hitler (not verified)
on
February 29, 2008 - 1:34am

VISHNU IS THE GOD OF DESTRUCTION!
CHANGING COMMAND PROMPTS DESTROYS YOUR COMPUTER!

Kindly do it

Suraj Singh (not verified)
on
March 21, 2008 - 2:56am

Dear Vishnu,
Say how can i create the con file in Desktop?

how i delete a con folder

prateek (not verified)
on
May 20, 2008 - 2:28am

hi ,
i creat a con folder whit the help of ur commands but it's not deleted

CON folder creation

Manas Ranjan Panda (not verified)
on
June 17, 2008 - 10:39pm

Thanks Vishnu,
Thanks very much...

When I created the folder "con" by using "md\\.\\C:\\con" in the run console, the folder is created. I ensured the existance of the folder "con" by using the "dir" command. The folder is created.
But when I deleted the folder con by the command "rmdir con", it didn't allow me to delete the folder. But after running the command "rmdir\\.\\C:\\con", it deleted the folder successfully.

Can you please tell me the actual concept of creating the folder in that command "md\\.\\C:\\con" ?

MS

jony_bobocea (not verified)
on
July 12, 2008 - 4:40pm

chiar a mers!!!trimite'ti'mi pe adresa mea de mail office@itstarbox.ro:toate injuraturile posibile!!!i'm gay and i love america ms :))

Is there a way to do it besides CMD

lizgado@drupal.org
on
August 11, 2008 - 12:57pm

I don't have administrative rights and though I cannot open CMD, is there another way to do this?

i can create a folder with name 'con'

anuchowdary (not verified)
on
August 10, 2007 - 2:22am

create newfolder type con+alt+255. i think it works.try it

hi, i have created & deleted con folder, hrryyeeee

jogesh makwana (not verified)
on
September 10, 2007 - 5:58am

i have created that folder by
run-cmd-
in cmd type md\\.\\c:\\con

check that in c: drive

procedure to delete that folder

run-cmd

in cmd type rd\\.\\c:\\con

regards
jogesh
try this this is prooven technique. belive me.
and congratulate me
9322513347

Con

trishant (not verified)
on
November 20, 2007 - 11:09pm

Do this - - - c:\md con\

creating con dir

Ragni srivastava (not verified)
on
February 22, 2008 - 5:24am

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"

Creation folder nd files in CON folder

Saroj Kumar Sahoo (not verified)
on
March 19, 2007 - 11:33pm

First you need to create a empty folder inside CON.Then Copy nd paste any files or folders inside that empty folder.But you cant copy and paste a memory contained folder.

Store files inside con folder

ckhuptong (not verified)
on
October 30, 2008 - 7:35am

This post is a bit old but I just happen to browse around and find it, so here's the solution to your problem. You can't directly store files inside con or some similar folders, the trick is to create a new folder inside the con folder and store files inside that new folder. See the property of the con folder and it will show 0 byte file size even if you store a gigabyte of data inside the folder.

hey it works

kane (not verified)
on
December 12, 2005 - 11:43am

hi there,

the sysntax given is working, Thanks a lot.

i need the exact command u used

aditya123 (not verified)
on
January 10, 2006 - 10:01am

hey can u plzz help me out in the command u used for creation of the con thing.

how to create CON folder ?

Anonymous (not verified)
on
April 17, 2007 - 4:03am

I tried it in all ways . But its not working. system could not find the path which specified .Please tell me some other way .

I KNOW

SAM VERMA (not verified)
on
June 6, 2007 - 12:48am

HI IT VERY SIMPLE,

STEP1: CREATE A FOLER, RIGHT CLICK THIS FOLDER AND GO TO RENAME TAB,THAN HOLD ALT+0160 THAN ENTER.
YOU CAN CREATE ANY TYPE OF FOLDER= LPT, LPT1--LPT9,CON,COM
REPLY ME

thank u

Anonymous (not verified)
on
August 8, 2007 - 11:45pm

It s very good

alt+0160 is an uncutable

Anonymous (not verified)
on
September 19, 2007 - 4:09pm

alt+0160 is an uncutable space.
when you don't want to have 2 wods in the same line, use it (very usefull when you type a letter for exemple)

Ya Its working!

Arunkumar429496 (not verified)
on
March 23, 2008 - 1:13am

Hey do u know to edit nt script file that to generate infinite folder within it with same parent folder name
eg:
you\you\you ...........so on if you find reply!!!

The proper command is

Anonymous (not verified)
on
August 29, 2007 - 10:18pm

The proper command is like:

1. If you want to create the directory in E drive then give the command like

c:\mkdir \\.\\e:\con

Bijoy Mazumder

Deleting con folder?

Rajeev Vandakar (not verified)
on
September 1, 2007 - 3:56am

Hi,

You can not delete con folder directly! need to use same way as its created, like rd\\.\\d:\con

it will work like this md \

yash (not verified)
on
March 8, 2006 - 9:44pm

it will work like this
md \\.\\c:\con
dir c:
rd \\.\\c:\con

What does it mean by \\.\\

Amit Gpel (not verified)
on
September 24, 2006 - 10:55pm

What does it mean by
\\.\\

Mean

Malan
on
September 25, 2006 - 2:49pm

It means we shoud switch out o the forlder m to compile all files

to create a folder with name con on desktop

Darshit (not verified)
on
January 12, 2007 - 9:28pm

hello....

Gr8 your step is working but frnd i want to create same folder on desktop if u have any idea then plz give me reply

and also thankful for ur tips.....

with regards,

Darshit R. Parmar

LE-Impetustech

Use the same way..use dos

Renjith_idiot (not verified)
on
January 23, 2007 - 5:39am

Use the same way..use dos path instead.thats all.
md \\.\C:\docume~1\\desktop\con
About con folder creation......
Windows will normally not allow this one to happen. So u cant do it in explorer. The reason is that con, prn, lpt1..lpt9, etc are underlying devices from the time dos was written..
con means console
prn means printer
.....
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.
i mean if i want to print something, internally what windows does is it will write the data to the folder(virtually u can call it a folder, i mean prn, con, etc are virtual folders in device level) prn.
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.
The work around we do here is make the folder network associated folder, ie md \\.\C:\con is no more a windows folder, even if it behaves somewhat to be.

it is not working

Anonymous (not verified)
on
April 11, 2007 - 10:58pm

it is not working

Good Explanation

Anonymous (not verified)
on
August 16, 2007 - 10:55pm

Very nice Explanation

1 right click on desktop 2

Vineet Pasricha (not verified)
on
October 11, 2007 - 9:44pm

1 right click on desktop
2 make a folder ( new folder )
3 rename that
how to rename
3.1 alt+0160 then write con

CON Directory Creation / Deletion in Windows

Anonymous (not verified)
on
January 30, 2007 - 3:25am

YES you are absolutely, it works like this only:

md \\.\\c:\con

And to remove directory it works like this:

rd \\.\\c:\con

Cheers

how to create CON folder ?

BiplabChatterjee (not verified)
on
April 17, 2007 - 4:08am

Its not working .
system can not find out the specified folder or path .

Hi i have done It its soo easy to creat CON folder

Biplab Chatterjee (not verified)
on
October 29, 2007 - 11:55pm

People can use dos command to creat the Con folder in his / her ssystem .. Its working ..

Biplab Chatterjee
Mumbai

GR88888888888888888888

Anonymous (not verified)
on
May 15, 2007 - 8:53pm

Its working,

thank you

Arun Pynampuram

It works for me too

Anonymous (not verified)
on
June 3, 2007 - 2:20pm

It works for me too

reply

freefun23 (not verified)
on
June 27, 2007 - 12:53am

if it cant work with "e" try with "c", "d", "f".
i mean try
c:\>mkdir\\.\c:\con
c:\>dir\\.\c:\con
C:\>rmdir\\.\e:\con

Dumb Kim mkdir is for unix

Anonymous (not verified)
on
September 29, 2008 - 7:07pm

Dumb Kim

mkdir is for unix like OSes

try "md" and "rd" within windows command prompt.

mkdir and rmdir are valid in

Anonymous (not verified)
on
October 22, 2008 - 2:28am

mkdir and rmdir are valid in windoze, maybe you should think before you speak

Great !! It worked !!

Sreenath (not verified)
on
October 15, 2005 - 2:38pm

Great !! It worked !!

If you added con, you need to

Studor (not verified)
on
January 31, 2006 - 7:27pm

If you added con, you need to remove it the same way.

C:\>rmdir \\.\c:\con

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.