User Tools

Site Tools


setpath_change_current_drive_and_directory_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== SETPATH (change current drive and directory) ====== Previous pageReturn to chapter overviewNext page

SETPATH(path)

blk2blue.jpg

SETPATH Changes the current drive and directory.
path A string constant or the label of a STRING, CSTRING, or PSTRING variable containing a new drive and/or directory specification.

SETPATH changes the current drive and directory. If the drive and path entry is invalid, the “Path Not Found” error is posted, and the current directory is not changed.

If the drive letter and colon are omitted from the path, the current drive is assumed. If only a drive letter and colon are in the path, SETPATH changes to the current directory of that drive.

Errors Posted:

03     Path Not Found

Example:

SETPATH('C:\LEDGER')     !Change to the ledger directory

SETPATH(UserPath)        !Change to the user's directory

See Also:

PATH

SHORTPATH

LONGPATH

DIRECTORY

FILEDIALOG

setpath_change_current_drive_and_directory_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1