WordBasic Kill Statement Deletes All Files in Folder
Article ID: 139789
Article Last Modified on 8/17/2005
APPLIES TO
- Microsoft Word 95 Standard Edition
- Microsoft Word 95a
This article was previously published under Q139789
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:
- Start Windows Explorer.
- On the View menu, click Options.
- Clear the "Hide MS-DOS file extensions for file types that are
registered" check box.
- Click OK.
Additional query words: word95 word7 7.0 winword
Keywords: KB139789