Microsoft KB Archive/124122

= File Manager: Association Fails if Path to Command Has Spaces =

Article ID: 124122

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Server 3.5

-



This article was previously published under Q124122



SUMMARY
In Windows NT version 3.5, a file association created in File Manager will fail if a directory in the path has spaces in its name.

For example: If WINWORD.EXE is located in D:\WIN32 APPS\WINWORD, choosing a .DOC file in File Manager displays a Program Not Found dialog box with the following message:

Cannot find WIN32.EXE.

This file is needed to run files with the extension 'DOC.'

To work around this problem, edit the command string:


 * 1) From the File menu in File Manager choose Associate.
 * 2) Select DOC for the extension
 * 3) Choose Change Type.
 * 4) Enclose the complete path in quotes in the Command field.
 * 5) Choose OK.

NOTE: You can also modify the command string in the following location in the Registry:

\HKEY_CLASSES_ROOT\ \shell\open\command

where is the file type or extension you wish to modify. To work around this problem, include the complete path to the executable file in the command value.

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.



CAUSE
Spaces have historically been interpreted as characters separating arguments or commands from one another. Since Windows NT version 3.5 allows files and directories to contain spaces in their names, many programs may need to be modified to accommodate the new file and directory structure.



STATUS
Microsoft has confirmed this to be a problem in Windows NT version 3.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. This problem was corrected in Windows NT version 3.51.

Additional query words: prodnt blank winfile "Cannot run program - Not enough memory to run application"

Keywords: KB124122

-

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

© Microsoft Corporation. All rights reserved.