Skip to content

Net_MapNetworkDrive

Maps a network drive. Can disconnect if an existing drive is mapped. Use Domain\UserName if you wish to map a drive using another User.
Using * as password, the CapaInstaller reads and decrypts the password if it has been encrypted using CapaInstaller.
See more about the password encryption feature Using passwords in CapaInstaller VB Scripting Library

Net_MapNetworkDrive(sDrive, sServerShare, bDisconnectExisting, sUserName, sPassword) As Boolean

Drive letter to map

UNC path to map

Disconnect existing device if already mapped

Username. Use if you must connect with another user

Password for the user. Use * if the password is encrypted by CapaInstaller in registry

If bStatus Then bStatus = Net_MapNetworkDrive("Q:", "\\CAPAINSTALLER\PRINTERSHARE", True, "", "")

Scripting Guidelines

Net_RemoveNetworkDrive Net_EnumNetworkDrives Net_EnumNetworkDrivePaths Constants Package Property Variables