Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Unexpected behavior when you access files on a recordable CD or DVD


View products that this article applies to.

Symptoms

When you access a file on a recordable CD or DVD, on rare occasions, the wrong file is accessed.

For example, when you double-click a file in Windows Explorer to open the file, a different file may open. The different file may have a similar name to the file that you double-clicked and is in the same folder on the CD or on the DVD.

↑ Back to the top


Cause

This behavior may occur if all the following conditions are true:
  • Your operating system is one of the following:
    • Microsoft Windows Server 2003
    • Microsoft Windows XP
    • Microsoft Windows 2000
    • Microsoft Windows NT 4.0
  • On a recordable CD or DVD, one or more files in a folder use the same name format that is used to auto-generate short file names.
  • On a recordable CD or DVD, one or more files in a folder have similar file names. For example, a folder might contain the following two files:
    • ThisIsATestFile.jpg
    • ThisIs~1.jpg
Consider the scenario where you have two files with similar names, such as ThisIsATestFile.jpg and ThisIs~1.jpg. If you double-click the ThisIs~1.jpg file in Windows Explorer, the ThisIsATestFile.jpg file may open.

If you copy the ThisIs~1.jpg file to your hard disk, the following two files appear on the hard disk:
  • ThisIs~1.jpg
  • ThisIsATestFile.jpg
However, both files are a copy of the same ThisIsATestFile.jpg file. Because of this behavior, you may not be able to open or to copy some of the files from the folder on the CD or on the DVD to your hard disk. Specifically, you may not be able to open or to copy the files that use short file names.

↑ Back to the top


Workaround

To avoid this behavior, do not use the same file naming format that is used for auto-generated short file names when you save files to a recordable CD or DVD.

To work around this issue, if you have already saved files to a recordable CD or DVD that you can no longer access, follow these steps:
  1. Access the recordable CD or DVD by using a computer that is running one of the following operating systems:
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98
    • Microsoft Windows 95
  2. Copy the files to the hard disk of the computer that is running one of these operating systems.
  3. Transfer the files from the hard disk of this computer to your computer by using a floppy disk, a network connection, an e-mail message, or a recordable CD or DVD that uses a different file naming convention.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

An auto-generated short file name has a maximum of eight characters in its name and three characters in its extension. (This format is generally referred to as the 8.3 file name format.) An auto-generated short file name will also have a �~� symbol as either the sixth or the seventh character in the name. A one-digit or a two-digit number appears after that character. (For example, ThisIs~1.jpg and ThisI~14.jpg are auto-generated short file names.) Short file names are auto-generated only for files with names that are longer than 8 characters before the period ".".

When Windows accesses data files on a CD or a DVD, the CD File System (CDFS) is used. Short file names are assigned to files so that the files can be accessed by programs that can use only the 8.3 file name format. CDFS uses an algorithm to assign the auto-generated short file names. The algorithm makes sure that the files have the same short file names every time that the CD is accessed and that there are never two of the same auto-generated short file names for files in the same folder. However, the algorithm does not make sure that an auto-generated short file name is not a duplicate of a file name that was already saved to the folder. Placement in the file system is one of the criteria that the CDFS algorithm uses to assign short file names. Therefore, you may use different software to save the same files to the same folder to a recordable CD or DVD and still experience the behavior that is mentioned in the "Symptoms" section.

This behavior does not occur when you save a file to a hard disk. When you save a file to a folder on a hard disk, the file system that is used on the hard disk saves auto-generated short file names in the file system to make sure that no duplicate file names exist. With CDFS standards, you cannot save both a long and a short file name to the same file system. Therefore, auto-generated short file names must be assigned when the CDs are read.

↑ Back to the top


References

For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
142372� Windows NT support for long file names under CDFS file system
279157� Description of CD-ROM recording in Windows XP
93604� ISO 9660 support for CD-ROM

↑ Back to the top


Keywords: kbprb, KB870544

↑ Back to the top

Article Info
Article ID : 870544
Revision : 3
Created on : 10/30/2004
Published on : 10/30/2004
Exists online : False
Views : 495