Author Topic: Can you create folder named CON in windows??  (Read 1684 times)

0 Members and 1 Guest are viewing this topic.

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2631
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
      CSE
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
Can you create folder named CON in windows??
« on: August 27, 2012, 12:08:05 pm »
How to create a CON folder in Windows ???? :think :think



Can you create a folder named "CON” in windows?
The Answer is NO and YES!



Why the answer is NO????.

NO because when create a new folder and try to rename it to any one of the above specified names, you know what  happens! In Windows XP the folder name automatically changes back to "New Folder” no matter you  try any number of  times. Where as in Windows Vista/7 when you try to rename the file you get an error message "The specified device
name is invalid”.

Why it is not possible to create a folder names CON?
Before we proceed further, let me tell you a small secret you can’t even create a folder named

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5,
LPT6, LPT7, LPT8, and LPT9.and many others
.

YES the reason you can’t create a folder with these names is because these are reserved keywords used by DOS.
The  below list is taken from Microsoft’s website shows a list of reserved keywords in DOS.

NAME  FUNCTION
 CON   Key board and display.
 PRN   System list device, usually a parallel port.
 AUX   Auxiliary Device, usually a serial port.  
 CLOCK$   System real-time clock.
 NUL   Bit-bucket device.
 A: - Z:   Drive letters.
 COM1   First serial communication port.
 LPT1   First parallel printer port.
 LPT2   Second Parallel printer port.
 LPT3   Third Parallel printer port.  
 COM2   Second serial communication port.
 COM3   Third serial communication port.
 COM4   Fourth seria
l communication port. [/font]


If you try creating a folder with any of these names, the name automatically changes back to the default "New Folder”.
And this is what has caused the confusion. Instead of automatically renaming the folder, had an explanatory warning  message popped up.



Yes we can create a folder named CON.

There is actually a way to create a folder named CON, or any other name from the above list of reserved keywords. This  can be done through command prompt. But it is advisable not to do so, as it might result in your system becoming  unstable.

To create a folder named CON, go to command prompt and type "MD \\\\.\\E:\\CON” (without quotes). This will create a  folder named CON in E:.


You cannot delete this folder by normal delete. To delete the folder, again go to command prompt and type
 "RD \\\\.\\E:\\CON” without quotes.



Have fun..!!! \\m/

Regards
~~Sammy~~
You do not have permission to give points
point 0 Points

This topic did not receive points.

 

How to enable the advance performance setting in windows vista?

Started by ospapapa

Replies: 0
Views: 1071
Last post October 30, 2008, 09:17:22 pm
by ospapapa
How To Safely Uninstall Ubuntu From A Windows Dual-Boot PC

Started by sagrma

Replies: 3
Views: 2226
Last post May 31, 2011, 12:13:26 pm
by tebits
How To Make Windows XP Genuine - Forever!

Started by ospapapa

Replies: 68
Views: 14305
Last post May 17, 2009, 10:39:35 am
by Bishart
How to hack a windows xp admin password????

Started by Kurt.....Nitin

Replies: 1
Views: 1666
Last post December 21, 2008, 09:35:30 pm
by ospapapa
Access windows programs faster than anyone

Started by DPSC

Replies: 1
Views: 1051
Last post September 29, 2012, 11:32:12 pm
by Sam
Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49