VB6Runtime / Library / File / curdir_dollar

VB6 Library Reference

CurDir$ Function

Returns a String representing the current path for the specified drive or the default drive. The dollar sign suffix ($) explicitly indicates that this function returns a String type (not a Variant).

Syntax

CurDir$[(drive)]

Parameters

Return Value

Returns a String containing the current directory path for the specified drive.

Examples

Dim currentDir As String
currentDir = CurDir$()
Dim cDrive As String
cDrive = CurDir$("C")

Reference

← Back to File | View all functions