"Cannot Find..." Using Shell Command with Long File Names (139851)



The information in this article applies to:

  • Microsoft Word for Windows 95

This article was previously published under Q139851

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.

Modification Type:MinorLast Reviewed:8/17/2005
Keywords:KB139851