How to Change the Location of the FoxSwap Swap File

Last reviewed: April 17, 1995
Article ID: Q90954
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SUMMARY

By default, the Microsoft FoxPro FoxSwap utility creates a temporary file in the directory in which FoxPro is installed. However, you can change the destination for the swap file by changing the current MS-DOS directory with the RUN CD <drive><directory> command before running FoxSwap.

MORE INFORMATION

For example, issuing the RUN CD A: command before issuing the RUN/0 <program name> command instructs FoxSwap to place its temporary swap file on drive A when FoxPro loads the specified application.

If the swap file drive is write-protected, an MS-DOS write protect error occurs. If the swap file drive does not have enough free space to store the swap file, a "Disk full writing to swap file" error occurs.

When the user terminates the called program, FoxSwap loads the data from the swap file back into memory. Unless the swap file is marked read-only, FoxSwap attempts to remove the swap file.

If FoxSwap is unable to locate the swap file on the swap drive, FoxSwap displays the following fatal error message and halts the system:

   Error reopening swap file. System halted.

FoxSwap is called only if the called application does not fit into available memory.


Additional reference words: FoxDos 2.00 2.50 2.50a diskless remote network
error
2.x errmsg err msg swapfile
KBCategory: kbprg kberrmsg
KBSubcategory:


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: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.