Microsoft KB Archive/939721

= A file is deleted from a Media Transfer Protocol device even though the file is not successfully moved to a Windows XP-based computer =

Article ID: 939721

Article Last Modified on 7/7/2007

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



SYMPTOMS
Consider the following scenario:
 * You have a device that uses Media Transfer Protocol (MTP).
 * You attach this device to a Microsoft Windows XP-based computer.

Note When you do this, a Windows Explorer-like virtual folder appears. This virtual folder displays the contents of the device.
 * You create a file on the MTP device.
 * You try to move the file that is on the MTP device to a folder on the computer. This folder has a very long folder name. For example, the folder name is 255 characters long.

In this scenario, the file is not successfully moved to the target folder on the computer because the path of the folder is too long. This is expected behavior. However, the file is deleted from the MTP device even though the file is not successfully moved to the Windows XP-based computer.



CAUSE
This issue occurs because Windows Explorer sends a notification message to the Windows Portable Device (WPD) shell extension. When an MTP device is attached to a computer, the WPD shell extension creates a Windows Explorer-like virtual folder. This virtual folder displays the contents of the device. When you try to move the file from the virtual folder to the computer, Windows Explorer handles the process. If the target folder path is too long, the file is not successfully moved to the Windows XP-based computer. However, Windows Explorer incorrectly notifies the WPD shell extension that the file can be deleted. Therefore, the WPD shell extension deletes the original file.



WORKAROUND
To work around this issue, shorten the folder name or the path of the folder.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbexpertisebeginner kbprb kbtshoot KB939721

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.