>Season's Greetings
>
>I have the following statements.
>
>Set Path to "C:\SALESORD\DATA"
>Wait Window CurDir()
>
>In the wait window, this statment showed '\salesord' excluding the 'data' subdirectory. What do I have to do in order to make sure that it is including the 'data' subdirectory. ( '\salesord\data' )? Any help or suggestion is appreciated.
SET PATH specifies a set of directories to search for files if they are not specified by a full path and cannot be found in the current working directory, as specified by FULLPATH(CURDIR()).
If you wish to change to the directory you names, rather than including it in the search path for files, you would either:
SET DEFAULT TO C:\SALESORD\DATA
or
CD C:\SALESORD\DATA
As you have things specified, if you reference a file by name only (MyFile.DBF), the current directory would be searched; if not found there, the folders specified in the path would be searched; in this case, the C:\SALESORD\DATA directory. Files being created are created in the current working directory as specified by FULLPATH(CURDIR()) unless a specific path is given when the file is named.