NAME
-
chdir - change current working directory
SYNOPSIS
-
chdir FileSpec
DESCRIPTION
-
The chdir statement changes the current working directory to the directory
given by FileSpec. Files referenced with path names that do not begin with /
are located relative to the current working directory. After the current
working directory is changed, the new directory is used as the base for all
relative path names for this program.
EXAMPLE
-
The program
kill "employees/gary"
chdir "employees"
kill "larry"
chdir ".."
kill "employees/roger"
deletes the files employees/gary, employees/larry and employees/roger.
SEE ALSO
-
mkdir, rmdir
DIAGNOSTICS
-
If FileSpec is not a directory that the user is permitted to search,
an "Illegal function call" error occurs.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber