Specify the Clipper search path for opening files

     SET PATH TO [<xcPathspec list>]


     TO <xcPathspec list> identifies the paths Clipper uses when
     searching for a file not found in the current directory.  You can
     specify it as a literal list or as a character expression enclosed in
     parentheses.  The list of paths can be separated by commas or
     semicolons.  However, continuation of a SET PATH command line with a
     semicolon is not supported unless <xcPathspec> is specified as a
     character expression enclosed in parentheses.


     SET PATH allows commands and functions that open database and associated
     files to find and open existing files in another drive and/or directory.
     It does this by specifying a path list to search if a referenced file
     cannot be found in the DEFAULT or specified directory.  Note that memo
     and low-level file functions respect neither the DEFAULT nor the path

     A path is a pointer to a directory.  It consists of an optional drive
     letter and colon, followed by a list of directories from the root to the
     desired directory separated by backslash (\) characters.  A path list is
     the sequence of paths to search, each separated by a comma or semicolon.

     When you attempt to access a file, Clipper first searches the default
     drive and directory.  The default disk drive and directory are
     established by DOS when your Clipper application is loaded or, during
     execution, by SET DEFAULT.  If the file is not found, Clipper then
     searches each path in the specified path list until the first occurrence
     of the file is found.

     To create new files in another drive or directory, use SET DEFAULT TO
     <xcPathspec> or explicitly declare the path when specifying a new file

     SET PATH TO with no argument releases the path list and Clipper
     searches only the DEFAULT directory.


     .  This example is a typical PATH command:


     .  This example configures a path setting at runtime by passing a
        DOS environment variable to a program, retrieving its value with
        GETENV(), and then setting path with this value.  For example, in


        Later in the configuration section of your application program:


 Files   Library is CLIPPER.LIB.


4 responses to “C5_SET PATH

  1. Pingback: C5_TYPE | Viva Clipper !

  2. Pingback: DB Commands | Viva Clipper !

  3. Pingback: C5 File Management | Viva Clipper !

  4. Pingback: C5 Commands | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.