Export (0) Print
Expand All
Expand Minimize
2 out of 4 rated this helpful - Rate this topic

SET PATH Command

Specifies a path for file searches.


SET PATH TO [Path] [ADDITIVE]

Parameters

TO [ Path]

Specifies the directories you want Visual FoxPro to search. Use commas or semicolons to separate the directories.

NoteNote

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.

ADDITIVE

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.