information technology

India
April 24, 2007 11:33pm CST
my friend told me that we can't create a file named 'con' in the operating systems is it true
1 response
• United States
25 Apr 07
Yes, he is right. Not only 'con', you can't create 'prn', 'com1', 'com2', 'lpt1'.. etc. The reason is they are underlying devices from the time dos was written. If you are allowed to create folders with those names, there will be ambiguity for windows. You can create it like this: Go to command prompt: c:\mkdir \\.\c:\con By creating folder like this, you are making it as network associated folder. so, it allows to create. And again you can't store data directly. You have to create another folder inside that and then put your data in that folder.
• India
25 Apr 07
but how can it be called as created in windows why i amasking is if we do it in command prompt cant it be treated as creating a file in in DOS sorry to say this but this is a doubt i m having cant we call command prompt as DOS mode