You are currently offline, waiting for your internet to reconnect

Error Message When You Use Run Command to Start a Program with a Long File Name

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article has been archived. It is offered "as is" and will no longer be updated.
If you click Start, and then click Run to start a program that has a very long file name, you may receive the following error message:
Windows cannot find 'Path to file'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
This behavior can occur if the total path to the file exceeds 255 characters. However, the run command only allows for 255 characters for the path to the file (entire directory structure to file) including the file name. The same issue will occur for a shortcut; the entire path cannot exceed 255 characters.
Move the file to a different location with a shorter path, or rename the file with a shorter name.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Article ID: 281675 - Last Review: 01/12/2015 17:11:45 - Revision: 2.0

Microsoft Windows XP Home Edition, Microsoft Windows XP Professional

  • kbnosurvey kbarchive kbenv kberrmsg kbprb KB281675