Net_RemoveNetworkDrive
Description
Section titled “Description”Disconnects an already connected network drive. The drive is always disconnected by force. The function waits up to 5 seconds for the drive to disappear and returns FALSE if it’s still mapped.
Syntax
Section titled “Syntax”Net_RemoveNetworkDrive(sDrive, bForce) As Boolean
Parameters
Section titled “Parameters”sDrive (String)
Section titled “sDrive (String)”Drive letter to disconnect
bForce (Boolean)
Section titled “bForce (Boolean)”Not used. The drive is always disconnected by force, and open files on the drive are closed.
Example
Section titled “Example”If bStatus Then bStatus = Net_RemoveNetworkDrive("Q:", True)Related functions
Section titled “Related functions”Net_MapNetworkDrive Net_EnumNetworkDrives Net_EnumNetworkDrivePaths Constants Package Property Variables