By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,620 Members | 1,512 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,620 IT Pros & Developers. It's quick & easy.

folder name con in windows

100+
P: 271
hi,

i came to know that the name "con" cannot be used for any folders in windows operating system and i too tried it. can any one tell me y that name cannot be used for the folders. i am much eager to know the reason for this.

regards....
Jan 3 '07 #1
Share this Question
Share on Google+
15 Replies


Cyberdyne
Expert 100+
P: 627
Device names such as COM1, CON or LPT1 are reserved words, and they can't be used as folder or file names.

Basically its one way Microsoft patched some of their denial of service vulnerabilities.

Well hope that explains it for you.

Regards, Cyberdyne.
Jan 3 '07 #2

100+
P: 271
thanks for ur reply. now i got my doubt cleared.

regards.....
Jan 4 '07 #3

vpawizard
P: 66
Well the explanation is correct but windows can be exploited to create a folder 'con'. Try this:

md \\.\c:\con


Regards,
Jan 4 '07 #4

Cyberdyne
Expert 100+
P: 627
I made the folder but now I can't delete it, nice! So how do I delete it now?
Jan 5 '07 #5

Cyberdyne
Expert 100+
P: 627
Ok I got it, reverse engineering to delete open command prompt and run

rd \\.\c:\con

enjoy =)
Jan 5 '07 #6

100+
P: 271
i tried to copy some content inside this folder thinking that as the folder cannot be deleted from windows it will be the same for the files inside also but my idea failed. so can any one tell me a way so that i can save my important datas from being deleted.
Jan 5 '07 #7

Cyberdyne
Expert 100+
P: 627
Karthi I suggest you open a new thread for this questions in the windows forum and we will be glad to help you.

Regards, Cyberdyne
Jan 5 '07 #8

100+
P: 271
sure cyberdyne i will do that
Jan 6 '07 #9

P: 20
do this
1.goto any folder
2.by using right click select rename option
3.rename the folder as con.
4.you can't rename it
WHY?
Jan 19 '07 #10

P: 23
The dot is not a valid character for a folder name.

do this
1.goto any folder
2.by using right click select rename option
3.rename the folder as con.
4.you can't rename it
WHY?
Jan 22 '07 #11

P: 20
The dot is not a valid character for a folder name.
don't use dot.just rename it as con
and check whether it renames?
any windows folder can accept any name except con
WHY THIS IS SO?
Jan 22 '07 #12

Cyberdyne
Expert 100+
P: 627
shardul316 I merged the threads as this question was already asked before.. enjoy.

Cyberdyne.
Jan 22 '07 #13

P: 5
thanku it is working
Sep 15 '10 #14

P: 5
how we can delete con folder?
Sep 15 '10 #15

P: 5
rd \\.\c:\con try this
Sep 15 '10 #16

Post your reply

Sign in to post your reply or Sign up for a free account.