Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PATH
Message
From
18/12/1998 23:08:20
 
 
To
18/12/1998 22:39:24
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00169071
Message ID:
00169075
Views:
14
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform