DIR$ |
dir$ returns the absolute path of the current directory.
dir$
Infbox "The current directory is:"-dir$
D = dir$
dir$ returns the current directory name,
i.e., the directory from which Adonix was launched.
When you work in client-server mode, it is therefore a directory of the
"client" from which Adonix was launched. If this client is under DOS,
it will be the "C:\adonix" directory, for example.
The dir$ function is equivalent to the '@pwd' System command (under UNIX) or the '@CD' System command (under DOS). Therefore, it does not return the directory path of the current application.
It is in this directory that the system commands will be launched by the "System" instruction.
The result is of the Char type.
|
Error |
Description |
|
TROFIC (29) |
The dir$ function needs two free channels to retrieve the result of the system command, and these channels are not available. |
|
|