Returning the pathname of current working directoryΒΆ

cwd()

Return pathname of current working directory


SYNTAX

cwd(numeric_expression)

Returns the full pathname of the current working directory.

numeric_expression

The valid values for numeric_expression are 0 and 1.

0

Returns the name in native form at.

1

Returns the name in UNIX format . On MS-DOS, a UNIX pathname is accepted internally. MS-DOS pathnames are needed only for DOS command lines or to access a drive other than the default drive.


EXAMPLE

!temp WorkDir,,a100

     +textbox DirBox at 160,29 {
          field = tmp.WorkDir
          label = "Directory "
     }
     ....

     tmp.WorkDir = cwd(0)
     display DirBox

RELATED TOPICS

File and directory handling functions