Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/251399

From BetaArchive Wiki

Article ID: 251399

Article Last Modified on 5/10/2003



APPLIES TO

  • Microsoft Visual FoxPro 3.0b Standard Edition, when used with:
    • Microsoft Windows 2000 Standard Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 5.0 Standard Edition, when used with:
    • Microsoft Windows 2000 Standard Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 5.0a, when used with:
    • Microsoft Windows 2000 Standard Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 6.0 Professional Edition, when used with:
    • Microsoft Windows 2000 Standard Edition
    • Microsoft Windows NT 4.0



This article was previously published under Q251399

SYMPTOMS

If you try to use the !/Run command in Visual FoxPro on a Windows NT or Windows 2000 computer and the files are in Long File Name format, the execution fails with the following error:

To many parameters - Files

This also occurs if a batch file contains a Long File Name.

CAUSE

The FoxRun.pif file points to the wrong file. FoxRun.pif points to Command.com on NT or Windows 2000. Command.com is not a DOS 7+ version but rather a DOS 6 version, which produces errors with Long File Names. FoxRun.pif should point to the CMD.exe file.

RESOLUTION

  1. Use the Windows Explorer to navigate to the FoxRun.pif file located in the Visual FoxPro home directory.
  2. Right-click and choose Properties.
  3. Select the Program tab.
  4. Change the Cmd line from: Command.com


to:

CMD.exe


STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a batch file, such as d:\test.bat.
  2. Add the following line to the batch file:

    cd "d:\Program Files"
  3. You may replace the preceding directory with any valid Long File Name path.
  4. Type the following in the FoxPro Command window: RUN d:\test.bat

    When you try to run the batch file from Visual FoxPro, you receive the following error message because Command.com does not understand the long file name d:\Program Files:

    To many parameters - Files


Keywords: kbbug kbnofix kbxbase KB251399