|
|
|
|
|
NetworkDisconnect (Function) In french: RéseauDéconnecte Disconnects a network drive.
ResDéconnexion is int = NetworkDisconnect("E:")
SWITCH ResDéconnexion
CASE 16
Error("Mauvaise valeur pour la déconnexion")
CASE 17
Error("Connexion en cours d'utilisation")
CASE 18
Error("Un fichier est ouvert, impossible de se déconnecter")
CASE 19
Error("Tentative de déconnexion sans connexion")
OTHER CASE
Info("Lecteur déconnecté avec succès")
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 format "<Drive letter>:". Remarks 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|