Microsoft KB Archive/139851

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

Article ID: 139851

Article Last Modified on 8/17/2005

-

APPLIES TO


 * Microsoft Word 95 Standard Edition

-



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.

Additional query words: 7.0 word7 word95 file name shell macro word basic wordbasic error cannot find run application winword

Keywords: KB139851

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.