WordBasic Kill Statement Deletes All Files in Folder

Last reviewed: August 5, 1997
Article ID: Q139789
The information in this article applies to:
  • Microsoft Word for Windows 95, versions 7.0, 7.0a

SYMPTOMS

The WordBasic Kill statement ignores the file extension and deletes ALL files in the specified folder.

For example, the following statement will also delete files with extensions of .doc, .exe, .dot, and so on in the specified folder:

     Kill <drive>\<path>\*.txt

CAUSE

The "Hide MS-DOS file extensions for file types that are registered" option in Windows Explorer is selected.

STATUS

Microsoft has confirmed this to be a problem in Word for Windows 95, version 7.0. This problem was corrected in Word 97.

RESOLUTION

Clear this option with the following steps:

  1. Start Windows Explorer.

  2. On the View menu, click Options.

  3. Clear the "Hide MS-DOS file extensions for file types that are registered" check box.

  4. Click OK.


KBCategory: kbenv
KBSubcategory:
Additional reference words: word95 word7 7.0 winword
Keywords : kbenv
Version : 7.0 7.0a
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: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.