Microsoft KB Archive/240695

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.6, 2.6a
 * Microsoft FoxPro for Windows, versions 2.6, 2.6a

-

SUMMARY
The RUN command, with a long file name or path name, fails in FoxPro 2.6. The long file names supported in Windows 95, Windows 98 and Microsoft Windows NT are not recognized by FoxPro 2.6.

MORE INFORMATION
The FoxPro for Windows 2.x and FoxPro for MS-DOS 2.x products do not recognize the long file names supported by Microsoft Windows 95, Windows 98 and Windows NT systems. You must use the MS-DOS name or short file name of the files or directories with long file names that you want to access. You can get the MS-DOS name by looking at the Properties of the long file name in Windows Explorer.

Steps to Reproduce Behavior
  In the FoxPro 2.6 Command window, type in this code (assuming that Excel.exe is available in this path): RUN /N C:\Program Files\Microsoft Office\Office\Excel.exe This returns the following error:

"Run/! Command failed."

  To workaround this, you can use the following commands: FNAME = GETFILE ? FNAME RUN /N &FNAME 

Additional query words: kbDSE

Keywords         : kbXBase kbGrpFox kbDSupport kbCodeSnippet Version          : MS-DOS:2.6,2.6a; WINDOWS:2.6,2.6a Platform         : MS-DOS WINDOWS Issue type       : kbinfo
 * }