File May Be Truncated to Zero Bytes When Copied Onto Itself

Last reviewed: November 12, 1997
Article ID: Q138014
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you try to copy a file onto itself, you receive a Confirm File Replace dialog box prompting you to confirm that you want to replace the existing 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 two different views of the same network resource (such as when you have two different drive letters mapped to the same network resource, or when you have two UNC connections to the same network resource), or when you copy a 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, the file may be deleted.

RESOLUTION

Microsoft has released a new version (4.00.951) of the Shell32.dll file (817,664 bytes) that corrects this problem.

To install this update, download the Windows 95 Service Pack 1 Update Setup.exe file from one of the sources listed below.

In addition to correcting the problem described in this article, the new version of Shell32.dll provides the ability to browse printers from the Add Printer Wizard for users of the Microsoft Service for NetWare Directory Services (NDS). Users of the standard network clients included with Windows 95 can already browse printers and do not require this update to 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

You can find SETUP.EXE (size: 1264640 bytes) 
                      , a self-extracting file, on the following
services:
  • Microsoft's World Wide Web Site on the Internet

          On the www.microsoft.com home page, click the Support icon.
          Click Knowledge Base, and select the product.
    
          Enter kbfile SETUP.EXE (size: 1264640 bytes) 
                                , and click GO!
          Open the article, and click the button to download the file.
    
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder.
          Get SETUP.EXE (size: 1264640 bytes) 
    
  • Microsoft Download Service (MSDL)

          Dial (425) 936-6735 to connect to MSDL
          Download SETUP.EXE (size: 1264640 bytes) 
    

For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online
               Services

For information about Microsoft Windows 95 Service Pack 1, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q142794
   TITLE     : Availability of Microsoft Windows 95 Service Pack 1

STATUS

Microsoft has confirmed this to be a problem in Microsoft Windows 95.

MORE INFORMATION

This problem does not affect most users, because copying a file onto itself is an unnecessary task. In addition, this problem occurs only in the 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.


Additional query words: 95 msnWin95misc pcweek servicepack1
Keywords : msnds msnets win95 kbfile kbnetwork kbprb
Version : 95
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.