File May Be Truncated to Zero Bytes When Copied Onto Itself

This article was previously published under Q138014
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
When you try to copy a file onto itself, you receive a Confirm FileReplace dialog box prompting you to confirm that you want to replace theexisting file. If you click Yes, the file may be truncated to zero bytes.If you click No, the file is unchanged.

This problem occurs only when you copy a file onto itself using twodifferent views of the same network resource (such as when you have twodifferent drive letters mapped to the same network resource, or when youhave two UNC connections to the same network resource), or when you copya file onto itself using a drive created with the SUBST command.

NOTE: If you try to move (rather than copy) a file in this manner, thefile may be deleted.
RESOLUTION
This issue is resolved by the following updated file for Windows 95, andlater versions of this file:
   SHELL32.DLL  version 4.00.951  817,664 bytes				
To install this update, download the Windows 95 Service Pack 1 UpdateSetup.exe file from one of the sources listed below.

In addition to correcting the problem described in this article, the newversion of Shell32.dll provides the ability to browse printers from theAdd Printer Wizard for users of the Microsoft Service for NetWareDirectory Services (NDS). Users of the standard network clients includedwith Windows 95 can already browse printers and do not require this updateto browse for printers.

Installation

To correct the problem described in this article, follow these steps:
  1. Download the Setup.exe file from one of the online services listed below to an empty folder.
  2. In My Computer or Windows Explorer, double-click the Setup.exe file.
  3. Follow the instructions on your screen.
  4. After the installation process is finished, shut down and then restart your computer.

Instructions for Downloading

To obtain this file, apply Microsoft Windows 95 Service Pack 1. For additional information about applying Microsoft Windows 95 Service Pack 1, click the article number below to view the article in the Microsoft Knowledge Base:
142794 Availability of Microsoft Windows 95 Service Pack 1
STATUS
Microsoft has confirmed this to be a problem in Microsoft Windows 95.This issue is resolved in Microsoft Windows 98.
MORE INFORMATION
This problem does not affect most users, because copying a file ontoitself is an unnecessary task. In addition, this problem occurs only inthe following circumstances:
  • The problem occurs only when you copy a file onto itself on a drive using drive mapping (such as a mapped network drive or a drive created with the SUBST command) or a UNC connection. Users in non-networked environments, and users who do not use the SUBST command, are not affected by this problem.
  • The problem occurs only if you use two views of the same network resource, or drive created with the SUBST command, and copy a file onto itself. For example, the problem may occur if you map drive X to the \\<server>\<folder> network resource, map drive Y to the same network resource, and then copy a file from the root folder of drive X to the root folder of drive Y.
  • The problem occurs only with files of a certain size. While preliminary testing indicates that only files smaller in size than approximately 234K are affected, the affected file size is also dependent on the size of the local and network buffers, and may vary based on configuration.
For additional information about issues resolved by updates to thiscomponent, please see the following articles in the Microsoft KnowledgeBase:
161100 File May Be Truncated When Copied to a Full Network Drive

150215 Disabling Automatic Network Shortcut Resolution

138014 File May Be Truncated to Zero Bytes When Copied Onto Itself

136834 Error Copying Read-Only Files to Core SMB Server
160807 Cannot Connect to Windows NT Server with Many Shares

For additional information about Windows 95 updates, please see thefollowing article in the Microsoft Knowledge Base:
161020 Implementing Windows 95 Updates
msnWin95misc pcweek servicepack1
Properties

Article ID: 138014 - Last Review: 09/27/2013 21:50:31 - Revision: 1.1

Microsoft Windows 95

  • kbnosurvey kbarchive kbfile kbnetwork KB138014
Feedback