Dsetpath
Set Default Directory Path
Dsetpath() Opcode = 59 ($3B)
This function is used to set a default directory on a drive, which is where
GEMDOS will search first for a named file.
C macro format
int status;
char *path;
status = Dsetpath(path)
Machine language format
move.l path, - (sp)
move.w #$3B, - (sp)
trap #1
addq.l #6,sp
Inputs
path long A pointer to a null-terminated ASCII di
rectory path string (for instance,
WORDPRC\LETTERS\FRED). If the path
name begins with a drive letter and a co
lon, the path is set for that drive rather
than the current default drive (for in
stance, C:\DATABASE\CLIENTS).
Results
DO status word A 0 means that the directory was selected without
problem, otherwise a negative GEMDOS error num
ber is returned.
See also
Dgetpath()
269