|
|
|
|
|
NetworkDisconnect (Function) In french: RéseauDéconnecte Disconnects a network drive. // Disconnect the network drive "E:" ResDisconnect is int = NetworkDisconnect("E:")  SWITCH ResDisconnection CASE 16 Error("Wrong value for disconnection") CASE 17 Error("Connection currently used") CASE 18 Error("A file is opened, unable to disconnect") CASE 19 Error("Attempt to disconnect without a connection") OTHER CASE Info("Drive successfully disconnected") END
Syntax
<Result> = NetworkDisconnect(<Drive letter>)
<Result>: Integer - 0 if the disconnection was performed,
- an error code (value greater than 0) otherwise.
<Drive letter>: Character string Network drive to disconnect, in the following format: "<Drive Letter>:". Remarks The following error codes are returned: - 16: Wrong value for disconnection.
- 17: Connection currently used.
- 18: A file is opened, unable to disconnect.
- 19: Attempt to disconnect without connection.
The error code message can be retrieved using the ErrorInfo function with the rrMessage constant.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|