2.14.2.2 cdset


Brief Information

Assign an index to current working directory, or list all assigned indices and paths

Command Line Usage

1. cdset;

2. cdset index:=10;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
index

Input

int

0
An integer from 1 to 9 that will be assigned to the current working directory, or 0 to list all assined integers.

You can leave the index unassigned to use default value 0. If an index is already assigned, it is reassigned to the new working directory.

Description

This X-Function is used to assigns a specified index to the current working directory, or lists all assigned indices and associated paths.

Examples

1. cdset

lists all assigned indices and associated paths.

Then you can run

cd <index>

to set the working directory to the associated path.

Note: cdset 0 is the same as cdset

2. cdset 5

assigns index 5 to the current working directory, so in the future you can run

cd 5

to quickly set the working directory.

To see the current working directory, run

cd

3. If the current working directory is not defined

cdset <index>;

will not change any assignment.

4. To clear an assignment, go to your User folder's origin.ini file, and search for the section named [xcd].

You may manually edit the assignments.

Related X-Functions

cd, dir