SET DEFAULT

From VSI OpenVMS Wiki
Jump to: navigation, search

SET DEFAULT is a DCL command that sets your default device and directory specifications. The new default is applied to all subsequent file specifications that do not explicitly include a device or directory name. When you change the default device assignment, the system equates the specified device with the logical name SYS$DISK.

Syntax

SET DEFAULT  [device-name[:]][directory-spec]

Examples

$ SET DEFAULT [TANNER]

The SET DEFAULT command in this example changes the default directory to [TANNER]. The default disk device does not change.

$ SET DEFAULT $FLOPPY1:[MOREAU.MEMOS]

The SET DEFAULT command in this example sets your default to the MOREAU.MEMOS subdirectory on $FLOPPY1.

$ SET DEFAULT $FLOPPY1:

The SET DEFAULT command in this example sets the default device to $FLOPPY1. The directory name does not change.

$ SET DEFAULT [-]

The SET DEFAULT command in this example changes the default directory to the parent directory of the one you are currently in. For example, if the current directory is $FLOPPY1:[NIELSEN.MEMOS], this command sets your default to $FLOPPY1:[NIELSEN]. If you are in $FLOPPY1:[NIELSEN], this command sets your default to the master directory on the disk-$FLOPPY1:[000000].