SourcePoint Intel Help

Table of Contents

defaultpath

Set or display the current working directory.

Syntax

[result =] defaultpath [= newpath]

Where:

result

specifies an nstring variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

newpath

is an nstring variable or string constant specifying a new working directory.

Discussion

The defaultpath control variable displays the default path that SourcePoint uses to locate files. ย This applies to all commands that accept a filename as an input.

Example 1

To display the current working directory:

Command input:

defaultpath

Result:

c:\Program Files\Arium\SourcePoint

Example 2

To set the current working directory:

Command input:

defaultpath = "c:\\temp"

defaultpath

Result:

c:\temp

Example 3

To assign the current working directory to a debug variable:

Command input:

define nstring strpath = defaultpath

strpath

Result:

c:\Program Files\Arium\SourcePoint

Related Topics: