Syntax
Connect [.Drive = number,] .Path = text [, .Password = text]
Remarks
In Windows, establishes a connection to a network drive. On the Macintosh, Connect is not available and generates an error; use MountVolume instead.
Argument | Explanation | |
.Drive | A number corresponding to the letter you want to assign to the network drive, where 0 (zero) corresponds to the first available drive letter, 1 to the second available drive letter, and so on. If you don't specify .Drive, the next available letter is used. | |
.Path | The path for the network drive (for example, "\\PROJECT\INFO"). | |
.Password | The password, if the network drive is protected with a password. |
Example
This example establishes a connection to a network drive protected with the password "smiley" and assigns the network drive to the next available network drive letter:
Connect .Path = "\\PROJECT\INFO", .Password = "smiley"
See Also
ChDir, CountDirectories(), GetDirectory$(), MountVolume