Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

On Win 7 Enterprise 64bit V6.1.7601 SP1 Build 7601, I cannot create *.csv files with specific names, i.e. CON.csv or PRN.csv.

This is the error I get when I try to rename:

enter image description here

Also, if I try to rename it from cmd.exe:

enter image description here

I also tried lowercase, still problems. Why do I get those errors?

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Scott, Tog, Kevin Panko, Moses Dec 14 '13 at 19:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
    
@techie007 You are right, did not search well enough, sorry. –  Oleg Komarov Dec 13 '13 at 21:42
    
No problem -- You'll know better next time. ;) –  Ƭᴇcʜιᴇ007 Dec 13 '13 at 21:44

3 Answers 3

up vote 6 down vote accepted

Those are reserved file names from the DOS days. There are a few more.

Below is a list of default device names.

   Name    Function
   ----    --------
   CON     Keyboard 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 communications port
   LPT1    First parallel printer port
   LPT2    Second parallel printer port
   LPT3    Third parallel printer port
   COM2    Second serial communications port
   COM3    Third serial communications port
   COM4    Fourth serial communications port

For more information, read this article: What's the deal with those reserved filenames like NUL and CON?

share|improve this answer
    
+1, I thought PRN meant something else(expected of a teenage bill making an OS), good to know it's parellel. –  behrooz Dec 13 '13 at 21:37
    
I like the link, and I think you should give it a bit more visibility by renaming it to the post full name. –  Oleg Komarov Dec 13 '13 at 21:40

For historical reasons, names such as CON and PRN are forbidden as filenames in Windows. These names once belonged to MS-DOS special devices:

The reserved names themselves were chosen to be compatible with "special files" handling of PIP command in CP/M. There were two kinds of devices in MS-DOS: Block Devices (used for disk drives) and Character Devices (generally all other devices, including COM and PRN devices). PIPE, MAILSLOT, and MUP are other standard Windows devices.

For more information, including a list of names reserved in this fashion, see the Wikipedia article on device files.

share|improve this answer

Those are reserved names - see http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.