Chapter 6 RAPID!
Functions
192 WCDMA Options Version 6.20
CHDIR
CLOCK
CURDIR$
DATE$
SHELL Calls the operating system shell in order to perform
operating system commands (e.g. so-called pipes).
TIME$ Returns a string containing the system time.
Syntax
CHDIR path$
Parameters
path$ is a valid string expression.
Description
Changes the current directory to the directory specified
in
path$.
path$ may either contain the absolute or relative path.
If
path$ is not a valid path, the current directory will be
kept and a runtime error will occur.
Example
CHDIR = "/usr/new"
Syntax
CLOCK
Parameters
There are no parameters.
Description
Returns the time since the system was started last.
The value returned is a floating-point double value,
expressing the time expired since the last start of the
system in seconds.
Example
t = CLOCK
Assigns the time since the system was started last to
variable t (t would then be set to e.g. ‘3724.23’ (sec-
onds)).
Syntax
CURDIR$
Parameters
There are no parameters.
Description
Returns the currently selected directory.
Example
PRINT "Current directory:";CURDIR$
Syntax
DATE$
Parameters
There are no parameters.