xHarbour Reference Documentation > Command Reference |
Set the search path for opening files.
SET PATH TO [<cDirectoryList>]
If <cDirectoryList> is omitted, the current drive and directory of the operating system is used as default.
The SET PATH command defines an additional search path for opening files when they cannot be found. This affects databases and associated files.
Files are searched in the following order:
1) | The current directory of the operating system. |
2) | The SET DEFAULT directory. |
3) | The directories specified with SET PATH. |
Note that low-level file functions like FOpen() do not use SET PATH or SET DEFAULT for searching files.
See also: | CurDir(), Set(), SET DEFAULT |
Category: | SET commands |
Source: | rtl\set.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example demonstrates how to define a search path // single directory SET PATH TO D:\xhb\apps\ // multiple directories SET PATH TO "D:\xhb\apps\;D:\xhb\data\;"
http://www.xHarbour.com