Présentation
Documentation
L'équipe
Sérialisation
 
Programmes
Objets
Libs Utilitaires
Libs Internes
   
 
Editeur
Syntaxes
Windows
Versions
   

SCR/AL1 - TOME III. Les librairies utilitaires

24. Le groupe s_wsys

24.25 WscrNetDelete (file s_wnet.c:92)

Syntax

WscrNetDelete(char *local)

Description

Disconnect a network connection. Same as net use f: /delete.

Valeur retournée

0 if successfull, error code if error

Exemple

    main(argc, argv)
int argc;
char *argv[];
{
int rc;
char *passwd = 0, *user = 0;

if(argc < 3) {
printf("Usage wnet -d local\n");
printf("Usage wnet -c local remote user passwd\n");
exit(1);
}
if(argc >= 5) user = argv[4];
if(argc >= 6) passwd = argv[5];

if(strcmp(argv[1], "-c") == 0)
rc = WscrNetUse(argv[2], argv[3], user, passwd);
else if(strcmp(argv[1], "-d") == 0)
rc = WscrNetDelete(argv[2]);
printf("rc = %d\n", rc);
}

Voir également

WscrNetUse()

Copyright © 1998-2015 Jean-Marc Paul and Bernard PAUL - Envoyez vos remarques ou commentaires à bernard@xon.be