DIR$

Contents


dir$ returns the absolute path of the current directory.

 

Syntax

   dir$

 

Examples

   Infbox  "The current directory is:"-dir$
   D = dir$

 

Description and Comments

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.

 

Associated Errors

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.

 

Associated Keywords

ADXDIR - FILPATH - SYSTEM


CONTENTS


Copyright © Sage 1999 - 2007