InitDir

This property returns and sets the initial file directory.

Syntax

object.InitDir [= string]

Parameters

object
Object expression that evaluates to a CommonDialog control.
string
String expression that specifies the initial file directory.

Remarks

This property is used to specify the initial directory for an Open or Save As dialog box. If this property is not specified, the current directory is used.