"Cannot Find..." Using Shell Command with Long File Names

Last reviewed: February 5, 1998
Article ID: Q139851
The information in this article applies to:
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

You get the following WordBasic error when you run a macro that uses the Shell command in Windows 95:

   Microsoft Word Err=1220
   Word cannot find or run the application.

CAUSE

The path or file name specified with the Shell command includes a space.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

Use the MS-DOS file name instead of the long file name. In Windows 95, the MS-DOS file name consists of the first six characters of the long file name, followed by a tilde (~) character and a number. For example, the MS- DOS file name for "My documents" is "MYDOCU~1." To identify the MS-DOS file name, view the properties of the file. To do this, click the document icon with the right mouse button, and then click Properties on the menu that appears.


KBCategory: kbusage kbmacro kberrmsg
KBSubcategory:
Additional reference words: 7.0 word7 word95 file name shell macro word
basic wordbasic error cannot find run application winword
Version : 7.0
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: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.