GETCWD

The GETCWD function allows a jBC program to determine the current working directory of the program. This will normally be the directory from which the program was executed but may have been changed with the CHDIR function.

 

COMMAND SYNTAX

GETCWD(Var)

 

SYNTAX ELEMENTS

When executed the Var will be set to the name of the current working directory. The function itself returns a Boolean TRUE or FALSE value indicating whether the command was successful or not.

 

NOTES

Refer to your UNIX or Windows documentation (sh is a good place to start), for more information on the concept of the current working directory.

 

EXAMPLES

IF GETCWD(Cwd) THEN
   CRT "Current Working Directory = ":Cwd
END ELSE
   CRT "Could not determine CWD!"
END


jBC