How to Change the Location of the FoxSwap Swap File

ID: Q90954

The information in this article applies to:

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:

Last Reviewed: April 17, 1995