C5_SET DEFAULT

SET DEFAULT
 Set the Clipper default drive and directory
------------------------------------------------------------------------------
 Syntax

     SET DEFAULT TO [<xcPathspec>]

 Arguments

     TO <xcPathspec> identifies a disk drive and the directory as the
     default and can be specified either as a literal path specification or
     as a character expression enclosed in parentheses.  If you specify both
     a drive and directory, a colon must be included after the drive letter.

     SET DEFAULT TO specified without an argument defaults to the current DOS
     drive and directory.

 Description

     SET DEFAULT sets the drive and directory where the application program
     creates and saves files, with the exception of temporary files and files
     created with the low-level file functions.

     SET DEFAULT does not change the DOS drive and directory.  When
     attempting to access files, the DEFAULT drive and directory are searched
     first.  To set additional search paths for file access, use SET PATH.

 Notes

     .  Initial Default: When a Clipper program starts, the default
        drive and directory are the current DOS drive and directory.  Within
        the program, you can change this with SET DEFAULT.

     .  Running external programs: Executing a RUN command accesses
        the current DOS drive and directory.

 Examples

     .  This example shows a typical use of SET DEFAULT:

        SET PATH TO
        ? FILE("Sales.dbf")      // Result: .F.
        //
        SET DEFAULT TO C:\CLIPPER\FILES
        ? FILE("Sales.dbf")      // Result: .T.
        //
        SET DEFAULT TO C:        // Change default drive
        SET DEFAULT TO \         // Change to root directory

        SET DEFAULT TO ..        // Change to parent directory

 Files   Library is CLIPPER.LIB.

See Also: CURDIR() SET PATH



Advertisements

6 responses to “C5_SET DEFAULT

  1. Pingback: SP_GETDFP | Viva Clipper !

  2. Pingback: C5_TYPE | Viva Clipper !

  3. Pingback: C5 Environment | Viva Clipper !

  4. Pingback: C5 File Management | Viva Clipper !

  5. Pingback: C5 Commands | Viva Clipper !

  6. Pingback: C5_SET PATH | 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.