Using Long Filenames with the Run Command
This article was previously published under Q139427
This article has been archived. It is offered "as is" and will no longer be updated.
If you click Run on the Start menu and then type a command including along filename with an embedded space in the Run dialog box, one of thefollowing symptoms may occur:
- You receive the following error message: Cannot find <filename> (or one of its components). Make sure the path and filename are correct and that all required libraries are available.
- An incorrect folder is opened or the wrong file is run.
Commands containing long filenames with embedded space characters mustbe enclosed in quotation marks in the Run dialog box.
Note that long filenames that do not contain embedded spaces areprocessed correctly.
To resolve this issue, use either of the following methods:
- To use a command including a long filename with an embedded space character in the Run dialog box, you must enclose the entire command in quotation marks. For example, to run the command
c:\program files\accessories\mspaint.exe you must type the following line in the Run dialog box (including the quotation marks:
- In the Run dialog box, use the 8.3 alias for any folder or filename that contains embedded spaces. For example, instead of typing
"c:\program files\accessories\mspaint.exe" in the Run dialog box, you could type:
c:\progra~1\accessories\mspaint.exe In this example, "progra~1" is the 8.3 alias for the long filename "program files."
This behavior is by design.
When you type a long filename with embedded spaces without quotationmarks in the Run dialog box, the filename is truncated at the firstspace when the command is processed.
Article ID: 139427 - Last Review: 12/04/2015 12:20:06 - Revision: 1.1
Microsoft Windows 95, Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows NT Workstation 4.0 Developer Edition
- kbnosurvey kbarchive KB139427