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:
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
- Use the Windows Explorer to navigate to the FoxRun.pif file located in the Visual FoxPro home directory.
- Right-click and choose Properties.
- Select the Program tab.
- 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
- Create a batch file, such as d:\test.bat.
Add the following line to the batch file:
cd "d:\Program Files"
- You may replace the preceding directory with any valid Long File Name path.
- 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:
Keywords: kbbug kbnofix kbxbase KB251399