CurDir Function

Syntax:

CurDir[$]([Drive$])

Group:

File

Description: Returns the current directory for Drive$.

Parameters:

Parameter

Description

Drive$

This string value is the drive letter. If this is omitted or null then return the current directory for the current drive.

Example:

Sub Main
  Debug.Print CurDir$()
End
Sub

See Also:

ChDir, ChDrive.