SET PATH Command
Specifies a path for file searches.
- TO [ Path]
Specifies the directories you want Visual FoxPro to search. Use commas or semicolons to separate the directories.
Visual FoxPro will not recognize a path name properly if a disk or directory name contains an exclamation point (!).
On all FoxPro platforms, functions that return path information, such as CURDIR( ), DBF( ), and SYS(2003), use Microsoft MS-DOS path-naming conventions in their return values.
Appends additional paths to the end of the current path.
Issue SET PATH TO without Path to restore the path to the default directory. Use SET DEFAULT to specify the default directory and CURDIR( ) to return the current default directory.
SET PATH is not scoped to the current data session; changes you make to the default path using the SET PATH command affect all data sessions.
SET PATH is limited to a maximum of 4095 characters.
When using the ADDITIVE parameter, paths must be included either as a quoted string or valid expression. If you use macro substitution, it must be properly quoted as in following examples:
xx = ["Folder2"] SET PATH TO &xx ADDITIVE ** or ** xx = "Folder2" SET PATH TO '&xx' ADDITIVE