A Filename You Cannot Use in Windows XP

hul2000

Member
Oct 17, 2006
5,050
2
0
39
Gallifrey
You'll think you can use any name as a filename. well you cant.

try to save any file using the name 'con' (without the quotes)
you will get an error message.

try to rename any existing file to the name 'con'
the name will not change. and you wont get an error message.
(usually when you try to rename a file to a already existing name you'll get an error)

same thing happens when you try to rename a folder or a shortcut.

does anyone knows why?
if you do please tell microsoft. because even they don't know.
 

SAN_APIIT

Well-known member
  • Mar 8, 2007
    4,611
    196
    63
    In a Chip !!!
    con was a old dos command and Microsoft forgot to clear it i guess... u cant create command names as folders.

    Try creating a folder as \\192.1.2.3

    U can tell Microsoft, hay i need half of the money Ok.(joke)

    :lol: :lol: :lol: :lol: :lol: :lol: :lol:
     

    SAN_APIIT

    Well-known member
  • Mar 8, 2007
    4,611
    196
    63
    In a Chip !!!
    Are u Sure :lol:

    This is the way to create the folder.......


    type this in command prompt(type cmd in run and press ok to access).

    md\\.\c:\con

    The derectory is C:\
    goto c:\ in my computer u will find a folder called con in it....
     

    SAN_APIIT

    Well-known member
  • Mar 8, 2007
    4,611
    196
    63
    In a Chip !!!
    sri_lion said:
    If you know something just share it, so the people who are interested in knowing why will read it!!


    CON stands for console. remember that there used to be a command called as "COPY CON <filename>" in Ms DOS. All it did was to create a file wiht the given name and used to take what ever text u typed as the contents of the file. so thats why u can't create it, but by saying

    File names in Windows XP Professional can be up to 255 characters and can contain spaces, multiple periods, and special characters that are not allowed in MS-DOS file names. Windows XP Professional makes it possible for other operating systems to access files that have long names by generating an MS-DOS-readable (8.3) name for each file. These MS-DOS-readable names also enable MS-DOS-based and Windows 3.x?based applications to recognize and load files that have long file names. When a program saves a file on a computer running Windows XP Professional, both the 8.3 file name and long file name are retained.

    Note

    * The 8.3 format means that files can have between 1 and 8 characters in the file name. The name must start with a letter or a number and can contain any characters except the following:
    * . " / \ [ ] : ; | = , * ? (space)
    * An 8.3 file name typically has a file name extension that is from one to three characters long and has the same character restrictions. A period separates the file name from the file name extension.
    * Several special file names are reserved by the system and cannot be used for files or folders:
    * CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL