Microsoft KB Archive/99602

{|
 * width="100%"|

-

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 1.02, 2.0, 2.5, 2.5a
 * Microsoft FoxPro for Windows, versions 2.5, 2.5a

-

SYMPTOMS
When you are trying to link a stand-alone .EXE file, you receive a &quot;Link Command Failed&quot; error message.

CAUSE
This error is caused by insufficient conventional memory, which is probably occurring because other programs and/or drivers are running simultaneously with FoxPro.

Make More Conventional Memory Available
To resolve this problem, you need to make more conventional memory available. The easiest way to do this is by booting &quot;clean&quot; (that is, booting with a minimal configuration).

The following batch files make it easy to switch between a clean environment and your normal environment.

WARNING: Before you make any modifications to your CONFIG.SYS file, you should make a bootable system disk (see your MS-DOS documentation) so that the machine can be booted from a floppy disk if necessary.

  At the MS-DOS command prompt, type the following commands:       copy config.sys *.nrm copy autoexec.bat *.nrm   Use a text editor to add the following lines to a file named CONFIG.CLN:       files=40 buffers=20 (Add a disk driver, if needed)   Use a text editor to add the following lines to a file named AUTOEXEC.CLN:       path c:\;c:\dos prompt $p$g (add c:\mouse\mouse if desired)   Use a text editor to add the following lines to a file named CLENBOOT.BAT:       copy config.cln *.sys copy autoexec.cln *.bat   Use a text editor to add the following lines to a file named NORMBOOT.BAT:       copy config.nrm *.sys copy autoexec.nrm *.bat </ol>

NOTE: If SMARTDrive is running, add the following line to CLENBOOT.BAT and NORMBOOT.BAT to ensure that the SMARTDrive memory cache is flushed (written to disk) before the machine is rebooted:  <pre class="CODESAMP">   smartdrv /c Whenever you need a clean boot in order to link a file, type &quot;CLENBOOT&quot; (without the quotation marks) at the MS-DOS command prompt, press RETURN, and then reboot the machine. Once the .EXE file has been linked, type &quot;NORMBOOT&quot; (without the quotation marks), press RETURN, and reboot the machine again.

Additional Troubleshooting
If the steps above do not resolve this problem, try the following:

<ol> Verify that FOXSWAP.COM is in the main FoxPro directory. This file allows FoxPro to swap memory out to a swap file on disk.</li> Verify that the configuration file (usually CONFIG.FP or CONFIG.FPW) does NOT contain the line DOSMEM=ON. If this line is present, it prevents FoxPro from using FOXSWAP.COM.</li> Verify that the MS-DOS environmental variable TEMP points to a valid directory.

To test this, type &quot;SET&quot; (without the quotation marks) at an MS-DOS prompt, or run the Microsoft Diagnostic utility (MSD.EXE) included with Windows. This utility reports an error at start-up if the TEMP variable doesn't point to a valid directory.

NOTE: Do not run MSD.EXE from Windows - quit Windows first and run it directly from MS-DOS.</li> Verify that the MS-DOS environmental variable COMSPEC points to a valid COMMAND.COM file. COMSPEC is sometimes reset by batch files or scripts when logging onto a network.

Again, use the type &quot;SET&quot; (without the quotation marks) at the MS-DOS prompt to view this variable.</li>  Try building the .EXE file directly from the Command window, bypassing the Project Manager, by typing the following in the Command window:  <pre class="CODESAMP">     BUILD EXE <exe_file> FROM <project_file> EXTENDED The Project Manager uses up some memory, and sometimes not using it frees up enough memory to allow the .EXE file to be built. </li> Verify that WLINK8.EXE is in the main FoxPro directory.

If this WLINK8.EXE isn't present, you will receive a &quot;Bad command or file name&quot; error message immediately before receiving the error that the link command failed.

The easiest way to place WLINK8.EXE in the directory again is to reinstall the Distribution Kit.</li></ol>

STATUS
This behavior is by design.

Additional query words: FoxDos FoxWin dkit distribution kit wlink errmsg err msg low tshoot

Keywords         : kberrmsg FxtoolProjman Version          : 1.02 2.00 2.50 2.50a | 2.50 2.50 Platform         : MS-DOS WINDOWS Issue type       :
 * }