CurDir

Description

This command returns a string that is the current directory.

Syntax

ret = CurDir ( )

Parameters
ret String,output
  The current directory is returned in this string.

 

Remarks

When the macro starts execution the PASSPORT working directory is the current directory.

Parentheses are optional for the CurDir command.

This is a PASSPORT command. This command is a Visual Basic command but is not implemented by VBScript.

Example

Sub ZMain()
strDir=CurDir
MsgBox "The current directory is: " & strDir
End Sub