Partager via


DefaultFilePath Property

Specifies the default drive and directory used by an Application object. Available at run time.

ApplicationObject.DefaultFilePath[ = cPath]

Return Value

  • cPath
    Specifies one of the following:

    • A drive designator.

    • A drive designator with a directory name.

    • A child directory name.

    • Any of the above using MS-DOS® shorthand notation ( \ or ..).

Remarks

Applies To: Application Object | _VFP System Variable

The DefaultFilePath property is similar to SET DEFAULT.

Visual FoxPro searches for a file in the default Visual FoxPro directory. The default directory is the one from which you start Visual FoxPro. However, you can use the DefaultFilePath property to specify a different default directory. If Visual FoxPro cannot find a file in the default directory, it then searches the Visual FoxPro path if one has been specified. Use SET PATH to specify the Visual FoxPro path.

See Also

Reference

SET DEFAULT Command

SET PATH Command

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)