Share via


SYS(2019) - Configuration File Name and Location

Returns the name and location of the Visual FoxPro configuration file.

SYS(2019)

Return Values

Character

Remarks

The Visual FoxPro configuration file is named Config.fpw, and it isn't installed by default. You can create your own Config.fpw configuration file with MODIFY FILE.

If a configuration file can't be located, SYS(2019) returns an empty string.

The Visual FoxPro configuration file is typically located in the directory where Visual FoxPro is started, but can be located elsewhere. Visual FoxPro first looks for it in the startup directory. If the configuration file isn't located in the startup directory, the MS-DOS path is then searched. Two options let you tell Visual FoxPro where your configuration file is located and its name:

  • You can create an MS-DOS environmental variable named FOXPROWCFG with the MS-DOS SET command, and you can store the location and name of your configuration file in FOXPROCFG. In FoxPro for MS-DOS, the MS-DOS environmental variable is named FOXPROCFG.
  • When you start Visual FoxPro, you can also use the -C switch to designate a configuration file. Include the location and name of the configuration file immediately after -C.

For further information about the Visual FoxPro configuration file, see Customizing the Visual FoxPro Environment.

See Also

MODIFY FILE | SYS( ) Functions Overview | Customizing the Visual FoxPro Environment