Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

GETCWD

Description

This function returns the current working directory of the program, which is normally the directory in which execution of the program occurred but possibly changed using the CHDIR function. It takes the general form:

 GETCWD(Var)

Where var will be set to the name of the current working directory at execution. The function itself  returns a boolean TRUE or FALSE value to indicate whether the command was successful or not.

Note:

Refer to underlying operating system documentation for more information on the concept of the current working directory.

An example of use is as follows:

0001     IF GETCWD(W_DIR) THEN
0002         CRT "Current Working Directory = ":W_DIR
0003     END ELSE
0004         CRT "Could not determine CWD!"
0005     END


Go back to jBASE BASIC

Was this article helpful?