next up previous contents index
Next: Date and Time Up: Main Functions 2 Previous: String Manipulation and Conversion   Contents   Index

Current Directory

Cwd(path)
This function changes the current working directory to that given by the argument. If path is null or empty, the change will be to the user's home directory. A tilde character (`~') appearing in path is expanded to the user's home directory as in a Unix shell. The return value is 1 if the change succeeds, 0 otherwise.

(string) Pwd()
This function returns a string containing the absolute path to the current directory.



Stephen R. Whiteley 2024-09-29