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

ID: Q139851

The information in this article applies to:

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

Last Reviewed: February 5, 1998