Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 here

 


Syntax

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


Parameters

sDrive (String)

...

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


Example

Code Block
language
languagevb
themeEclipse
vbtitleVBScript
If bStatus Then bStatus = Net_MapNetworkDrive("Q:", "\\CAPAINSTALLER\PRINTERSHARE", True, "", "") 

Scripting Guidelines 


Related functions

Net_RemoveNetworkDrive Net_EnumNetworkDrives Net_EnumNetworkDrivePaths