Home » Ask & Discuss » Physics. » General Physics « Back to Discussion



General Physics

®µD®A's Avatar
Blazing goIITian

Joined: 12 Apr 2008
Post: 2717
20 Jun 2008 13:22:11 IST
0 People liked this
24
1781 View Post
Answer this
None

Why can't we name a folder as "CON" or "con"?


Share this article on:

Comments (24)

  • 1
  • 2
  • GO
  • Go to Page...
®µD®A's Avatar

Blazing goIITian

Joined: 12 Apr 2008
Posts: 2717
21 Jun 2008 17:53:47 IST
0 people liked this

ok

Cool goIITian

Joined: 27 Dec 2006
Posts: 89
21 Jun 2008 17:56:02 IST
2 people liked this

"CON" and a number of other character strings are in fact reserved names that go back to the days of DOS and cannot be used to name folders or files. Other reserved names are:



  • PRN

  • AUX

  • NUL

  • LPT1

  • COM1

  • Potential drive letter - A: to Z:

  • A number of others




If you try to name a folder using one of these reserved names, the name will automatically revert to the default, generally "New Folder". Moreover, if you try to use a reserved name to name a file such as a Notepad or Microsoft Word document you will generally receive an error message













Cool goIITian

Joined: 18 Jun 2008
Posts: 95
21 Jun 2008 18:19:36 IST
0 people liked this

In windows the folder name and the special system variables share the same interface, so when you create a folder with a system variable name it will consider that folder already exist!!
These special system variables are available irrespective of path
You cannot create a folder with these names also:
CON, NUL, COM1, COM2, COM3, LPT1, LPT2, LPT3,COM1 to COM9 and LPT1 to LPT9....,PRN
CON means console, COM1 means serial port 1, LPT1 means parallel port 1
vizay soni's Avatar

Blazing goIITian

Joined: 31 May 2007
Posts: 520
21 Jun 2008 20:01:32 IST
0 people liked this

bcos "con" is not valid for unicode
Nadeem's Avatar

Blazing goIITian

Joined: 25 Aug 2007
Posts: 521
13 Oct 2008 11:53:06 IST
0 people liked this

The story about some  indian finding that folders cannot be named con is ABSOLUTELY NONSENSE .


The reason why it cannot be named is because DOS keeps con as a keyword , which means console ( or keyboard ) .


So if you want to do something from the keyboard instead of a file , then you use con .


e.g.


copy con a.txt


This command will copy text from the keyboard  instead of a file.


The magic about bush hid the facts is a bug in notepad . It is some problem when reading unicode characters . It has been corrected in recent versions of notepad.




Quick Reply


Reply

Some HTML allowed.
Keep your comments above the belt or risk having them deleted.
Signup for a avatar to have your pictures show up by your comment
If Members see a thread that violates the Posting Rules, bring it to the attention of the Moderator Team
Free Sign Up!

Preparing for IIT-JEE ?

Arihant Revision Package for IIT JEE - Books, Practice Tests + Rank Predictor


@ INR 1,995/-

For Quick Info

Name

Mobile No.

Find Posts by Topics

Physics.

Topics

Mathematics.

Chemistry.

Biology

Parents

Board

Fun Zone

Sponsored Ads