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
Pingback: SP_GETDFP | Viva Clipper !
Pingback: C5_TYPE | Viva Clipper !
Pingback: C5 Environment | Viva Clipper !
Pingback: C5 File Management | Viva Clipper !
Pingback: C5 Commands | Viva Clipper !
Pingback: C5_SET PATH | Viva Clipper !