|
|
|
|
|
NetworkDisconnect (Function) 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
Sintaxis
<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 format "<Drive letter>:". Observaciones The following error codes are returned: - 16: Wrong value for switch-off.
- 17: Connection in use.
- 18: A file is open, impossible to disconnect.
- 19: Attempt to disconnect without connection.
The error code message can be retrieved using the ErrorInfo function with the rrMessage constant.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|