Shortcut to MS-DOS-Based Program Limited to 62 Characters

Last reviewed: August 30, 1996
Article ID: Q137939
The information in this article applies to:
  • Microsoft Windows 95

SYMPTOMS

When you double-click a shortcut for an MS-DOS-based program, you may receive the following error message:

   Cannot find the file '<Path>.' Make sure that the file
   exists on your system and that the path and filename
   are correct.

CAUSE

Shortcuts for MS-DOS-based programs are stored in .pif files rather than in .lnk files. The maximum length for a command line in a .pif file is 62 characters. If the command line is longer than 62 characters, you receive the error message stated above.

RESOLUTION

To work around this limitation, use either of the following methods:

  • Reinstall the MS-DOS-based program to a folder with a shorter path, and then create a shortcut to the new location.
  • Create a batch file in the Windows folder that runs the MS-DOS-based program, and then create a shortcut to the batch file.


KBCategory: kbui kberrmsg
KBSubcategory: win95
Additional reference words: 95


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.